Package com.gigaspaces.metadata.index
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 com.gigaspaces.metadata.index.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 com.gigaspaces.metadata.index.AbstractSpaceIndex
equals, getCompoundIndexSegments, getIndexType, getIndexValueFromCustomIndex, getMultiValueIndexType, getName, getNumSegments, hashCode, isCompoundIndex, isMultiValuePerEntryIndex, isUnique, setUnique, toStringMethods 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.serialization.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
-