Package com.gigaspaces.metadata.index
Class CompoundIndex
java.lang.Object
com.gigaspaces.internal.serialization.AbstractExternalizable
com.gigaspaces.metadata.index.AbstractSpaceIndex
com.gigaspaces.metadata.index.CustomIndex
com.gigaspaces.metadata.index.CompoundIndex
- All Implemented Interfaces:
ISwapExternalizable,ISpaceIndex,SpaceIndex,SmartExternalizable,Externalizable,Serializable
definition of a compound index meta data
- Since:
- 9.5
- Author:
- Yechiel
- 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 inherited from class com.gigaspaces.metadata.index.CustomIndex
_indexValueGetter -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleangetIndexValue(ServerEntry entry) intbooleanbooleanisEquivalent(CompoundIndex other) protected voidvoidprotected voidvoidwriteToSwap(ObjectOutput out) Methods inherited from class com.gigaspaces.metadata.index.CustomIndex
getIndexOriginTypeMethods inherited from class com.gigaspaces.metadata.index.AbstractSpaceIndex
getIndexType, getIndexValueFromCustomIndex, getMultiValueIndexType, getName, hashCode, 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
-
Constructor Details
-
CompoundIndex
public CompoundIndex() -
CompoundIndex
-
-
Method Details
-
isCompoundIndex
public boolean isCompoundIndex()- Specified by:
isCompoundIndexin interfaceISpaceIndex- Overrides:
isCompoundIndexin classAbstractSpaceIndex- Returns:
- true if its a compound index
-
getCompoundIndexSegments
- Specified by:
getCompoundIndexSegmentsin interfaceISpaceIndex- Overrides:
getCompoundIndexSegmentsin classAbstractSpaceIndex- Returns:
- segments of compound index
-
getNumSegments
public int getNumSegments()- Overrides:
getNumSegmentsin classAbstractSpaceIndex
-
getIndexValueForTemplate
- Specified by:
getIndexValueForTemplatein interfaceISpaceIndex- Overrides:
getIndexValueForTemplatein classCustomIndex- Returns:
- the value that will be used for single template value indexing
-
getIndexValue
- Specified by:
getIndexValuein interfaceISpaceIndex- Overrides:
getIndexValuein classCustomIndex- Returns:
- the value that will be used to index the data
-
equals
- Overrides:
equalsin classAbstractSpaceIndex
-
isEquivalent
-
readExternalImpl
- Overrides:
readExternalImplin classCustomIndex- Throws:
IOExceptionClassNotFoundException
-
readFromSwap
- Specified by:
readFromSwapin interfaceISwapExternalizable- Overrides:
readFromSwapin classCustomIndex- Throws:
IOExceptionClassNotFoundException
-
writeExternalImpl
- Overrides:
writeExternalImplin classCustomIndex- Throws:
IOException
-
writeToSwap
- Specified by:
writeToSwapin interfaceISwapExternalizable- Overrides:
writeToSwapin classCustomIndex- Throws:
IOException
-