Package com.gigaspaces.metadata.index
Class AbstractSpaceIndex
java.lang.Object
com.gigaspaces.internal.serialization.AbstractExternalizable
com.gigaspaces.metadata.index.AbstractSpaceIndex
- All Implemented Interfaces:
ISwapExternalizable,ISpaceIndex,SpaceIndex,SmartExternalizable,Externalizable,Serializable
- Direct Known Subclasses:
CustomIndex,SpaceCollectionIndex,SpacePathIndex,SpacePropertyIndex
- Since:
- 7.1
- Author:
- Niv Ingberg
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.gigaspaces.metadata.index.ISpaceIndex
ISpaceIndex.FifoGroupsIndexTypes, ISpaceIndex.IndexOriginTypes, ISpaceIndex.MultiValuePerEntryIndexTypes -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedAbstractSpaceIndex(String indexName, SpaceIndexType indexType, boolean isUnique) -
Method Summary
Modifier and TypeMethodDescriptionbooleanGets the type of the index.protected ObjectThis method is used by custom indexes (custom, path & collection).getName()Gets the name of the index.intinthashCode()booleanbooleanbooleanisUnique()Returns true if this index has a unique constraint, false otherwise.protected voidvoidvoidsetUnique(boolean val) sets the unique indicator to the desired value.toString()protected voidvoidwriteToSwap(ObjectOutput out) Methods inherited from class com.gigaspaces.internal.serialization.AbstractExternalizable
readExternal, writeExternalMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.io.Externalizable
readExternal, writeExternalMethods inherited from interface com.gigaspaces.metadata.index.ISpaceIndex
getIndexOriginType, getIndexValue, getIndexValueForTemplateMethods inherited from interface com.gigaspaces.serialization.SmartExternalizable
enabledSmartExternalizableWithReference
-
Constructor Details
-
AbstractSpaceIndex
public AbstractSpaceIndex() -
AbstractSpaceIndex
-
-
Method Details
-
getName
Description copied from interface:SpaceIndexGets the name of the index.- Specified by:
getNamein interfaceSpaceIndex
-
getIndexType
Description copied from interface:SpaceIndexGets the type of the index.- Specified by:
getIndexTypein interfaceSpaceIndex
-
isUnique
public boolean isUnique()Description copied from interface:SpaceIndexReturns true if this index has a unique constraint, false otherwise.- Specified by:
isUniquein interfaceSpaceIndex- Returns:
- true if index is unique
-
setUnique
public void setUnique(boolean val) Description copied from interface:ISpaceIndexsets the unique indicator to the desired value.- Specified by:
setUniquein interfaceISpaceIndex
-
isMultiValuePerEntryIndex
public boolean isMultiValuePerEntryIndex()- Specified by:
isMultiValuePerEntryIndexin interfaceISpaceIndex- Returns:
- true if the index is a multi-value index
-
getMultiValueIndexType
- Specified by:
getMultiValueIndexTypein interfaceISpaceIndex- Returns:
- the type of multi-value index
-
isCompoundIndex
public boolean isCompoundIndex()- Specified by:
isCompoundIndexin interfaceISpaceIndex- Returns:
- true if its a compound index
-
getCompoundIndexSegments
- Specified by:
getCompoundIndexSegmentsin interfaceISpaceIndex- Returns:
- segments of compound index
-
getNumSegments
public int getNumSegments() -
hashCode
public int hashCode() -
equals
-
readExternalImpl
- Overrides:
readExternalImplin classAbstractExternalizable- Throws:
IOExceptionClassNotFoundException
-
readFromSwap
- Specified by:
readFromSwapin interfaceISwapExternalizable- Throws:
IOExceptionClassNotFoundException
-
writeExternalImpl
- Overrides:
writeExternalImplin classAbstractExternalizable- Throws:
IOException
-
writeToSwap
- Specified by:
writeToSwapin interfaceISwapExternalizable- Throws:
IOException
-
getIndexValueFromCustomIndex
This method is used by custom indexes (custom, path & collection).- Returns:
- The index value stored in the custom query's custom indexes.
-
toString
-