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, writeExternal
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getIndexOriginType, getIndexValue, getIndexValueForTemplate
enabledSmartExternalizableWithReference
readExternal, writeExternal
public AbstractSpaceIndex()
protected AbstractSpaceIndex(String indexName, SpaceIndexType indexType, boolean isUnique)
public String getName()
SpaceIndex
getName
in interface SpaceIndex
public SpaceIndexType getIndexType()
SpaceIndex
getIndexType
in interface SpaceIndex
public boolean isUnique()
SpaceIndex
isUnique
in interface SpaceIndex
public void setUnique(boolean val)
ISpaceIndex
setUnique
in interface ISpaceIndex
public boolean isMultiValuePerEntryIndex()
isMultiValuePerEntryIndex
in interface ISpaceIndex
public ISpaceIndex.MultiValuePerEntryIndexTypes getMultiValueIndexType()
getMultiValueIndexType
in interface ISpaceIndex
public boolean isCompoundIndex()
isCompoundIndex
in interface ISpaceIndex
public ISpaceCompoundIndexSegment[] getCompoundIndexSegments()
getCompoundIndexSegments
in interface ISpaceIndex
public int getNumSegments()
protected void readExternalImpl(ObjectInput in) throws IOException, ClassNotFoundException
readExternalImpl
in class AbstractExternalizable
IOException
ClassNotFoundException
public void readFromSwap(ObjectInput in) throws IOException, ClassNotFoundException
readFromSwap
in interface ISwapExternalizable
IOException
ClassNotFoundException
protected void writeExternalImpl(ObjectOutput out) throws IOException
writeExternalImpl
in class AbstractExternalizable
IOException
public void writeToSwap(ObjectOutput out) throws IOException
writeToSwap
in interface ISwapExternalizable
IOException
protected Object getIndexValueFromCustomIndex(ServerEntry entry)
Copyright © GigaSpaces.