public abstract class AbstractSpaceIndex extends AbstractExternalizable implements ISpaceIndex
ISpaceIndex.FifoGroupsIndexTypes, ISpaceIndex.IndexOriginTypes, ISpaceIndex.MultiValuePerEntryIndexTypes| Modifier | Constructor and Description |
|---|---|
|
AbstractSpaceIndex() |
protected |
AbstractSpaceIndex(String indexName,
SpaceIndexType indexType,
boolean isUnique) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
ISpaceCompoundIndexSegment[] |
getCompoundIndexSegments() |
SpaceIndexType |
getIndexType()
Gets the type of the index.
|
protected Object |
getIndexValueFromCustomIndex(ServerEntry entry)
This method is used by custom indexes (custom, path & collection).
|
ISpaceIndex.MultiValuePerEntryIndexTypes |
getMultiValueIndexType() |
String |
getName()
Gets the name of the index.
|
int |
getNumSegments() |
int |
hashCode() |
boolean |
isCompoundIndex() |
boolean |
isMultiValuePerEntryIndex() |
boolean |
isUnique()
Returns true if this index has a unique constraint, false otherwise.
|
protected void |
readExternalImpl(ObjectInput in) |
void |
readFromSwap(ObjectInput in) |
void |
setUnique(boolean val)
sets the unique indicator to the desired value.
|
String |
toString() |
protected void |
writeExternalImpl(ObjectOutput out) |
void |
writeToSwap(ObjectOutput out) |
readExternal, writeExternalclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetIndexOriginType, getIndexValue, getIndexValueForTemplatereadExternal, writeExternalpublic AbstractSpaceIndex()
protected AbstractSpaceIndex(String indexName, SpaceIndexType indexType, boolean isUnique)
public String getName()
SpaceIndexgetName in interface SpaceIndexpublic SpaceIndexType getIndexType()
SpaceIndexgetIndexType in interface SpaceIndexpublic boolean isUnique()
SpaceIndexisUnique in interface SpaceIndexpublic void setUnique(boolean val)
ISpaceIndexsetUnique in interface ISpaceIndexpublic boolean isMultiValuePerEntryIndex()
isMultiValuePerEntryIndex in interface ISpaceIndexpublic ISpaceIndex.MultiValuePerEntryIndexTypes getMultiValueIndexType()
getMultiValueIndexType in interface ISpaceIndexpublic boolean isCompoundIndex()
isCompoundIndex in interface ISpaceIndexpublic ISpaceCompoundIndexSegment[] getCompoundIndexSegments()
getCompoundIndexSegments in interface ISpaceIndexpublic int getNumSegments()
protected void readExternalImpl(ObjectInput in) throws IOException, ClassNotFoundException
readExternalImpl in class AbstractExternalizableIOExceptionClassNotFoundExceptionpublic void readFromSwap(ObjectInput in) throws IOException, ClassNotFoundException
readFromSwap in interface ISwapExternalizableIOExceptionClassNotFoundExceptionprotected void writeExternalImpl(ObjectOutput out) throws IOException
writeExternalImpl in class AbstractExternalizableIOExceptionpublic void writeToSwap(ObjectOutput out) throws IOException
writeToSwap in interface ISwapExternalizableIOExceptionprotected Object getIndexValueFromCustomIndex(ServerEntry entry)
Copyright © GigaSpaces.