Class CustomIndex
java.lang.Object
com.gigaspaces.internal.serialization.AbstractExternalizable
com.gigaspaces.metadata.index.AbstractSpaceIndex
com.gigaspaces.metadata.index.CustomIndex
- All Implemented Interfaces:
ISwapExternalizable, ISpaceIndex, SpaceIndex, SmartExternalizable, Externalizable, Serializable
- Direct Known Subclasses:
CompoundIndex
Default implementation of the space custom index meta data
- Since:
- 7.1
- Author:
- anna
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface ISpaceIndex
ISpaceIndex.FifoGroupsIndexTypes, ISpaceIndex.IndexOriginTypes, ISpaceIndex.MultiValuePerEntryIndexTypes -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionCustomIndex(String indexName, ISpaceValueGetter<ServerEntry> indexValueGetter, boolean isUnique, SpaceIndexType indexType) -
Method Summary
Modifier and TypeMethodDescriptiongetIndexValue(ServerEntry entry) protected voidvoidprotected voidvoidwriteToSwap(ObjectOutput out) Methods inherited from class AbstractSpaceIndex
equals, getCompoundIndexSegments, getIndexType, getIndexValueFromCustomIndex, getMultiValueIndexType, getName, getNumSegments, hashCode, isCompoundIndex, isMultiValuePerEntryIndex, isUnique, setUnique, toStringMethods inherited from class AbstractExternalizable
readExternal, writeExternalMethods inherited from interface Externalizable
readExternal, writeExternalMethods inherited from interface SmartExternalizable
enabledSmartExternalizableWithReference
-
Field Details
-
_indexValueGetter
-
-
Constructor Details
-
CustomIndex
public CustomIndex() -
CustomIndex
public CustomIndex(String indexName, ISpaceValueGetter<ServerEntry> indexValueGetter, boolean isUnique, SpaceIndexType indexType)
-
-
Method Details
-
getIndexValue
- Returns:
- the value that will be used to index the data
-
getIndexOriginType
- Returns:
- the index origin
-
readExternalImpl
- Overrides:
readExternalImplin classAbstractSpaceIndex- Throws:
IOExceptionClassNotFoundException
-
readFromSwap
- Specified by:
readFromSwapin interfaceISwapExternalizable- Overrides:
readFromSwapin classAbstractSpaceIndex- Throws:
IOExceptionClassNotFoundException
-
writeExternalImpl
- Overrides:
writeExternalImplin classAbstractSpaceIndex- Throws:
IOException
-
writeToSwap
- Specified by:
writeToSwapin interfaceISwapExternalizable- Overrides:
writeToSwapin classAbstractSpaceIndex- Throws:
IOException
-
getIndexValueForTemplate
- Returns:
- the value that will be used for single template value indexing
-