public abstract class FSLeafIndexImpl<T extends FeatureStructure> extends java.lang.Object implements IntComparator, FSIndex<T>, FSIndexImpl
| Modifier and Type | Field and Description |
|---|---|
protected CASImpl |
lowLevelCAS |
BAG_INDEX, DEFAULT_BAG_INDEX, SET_INDEX, SORTED_INDEX| Modifier | Constructor and Description |
|---|---|
protected |
FSLeafIndexImpl(CASImpl cas,
Type type,
int indexType)
Constructor for FSLeafIndexImpl.
|
| Modifier and Type | Method and Description |
|---|---|
int |
compare(FeatureStructure fs1,
FeatureStructure fs2)
Compare two feature structures according to the ordering relation of the index.
|
int |
compare(int fs1,
int fs2)
Compare two ints.
|
abstract void |
deleteFS(FeatureStructure fs)
Method deleteFS.
|
boolean |
equals(java.lang.Object o) |
FSIndexComparator |
getComparator() |
int |
getIndexingStrategy()
Return the indexing strategy.
|
IntPointerIterator |
getIntIterator() |
Type |
getType()
Return the type of feature structures this index contains.
|
int |
hashCode() |
FSIterator<T> |
iterator()
Return an iterator over the index.
|
FSIterator<T> |
iterator(FeatureStructure fs)
Return an iterator over the index.
|
int |
ll_compare(int ref1,
int ref2) |
LowLevelIterator |
ll_iterator(boolean ambiguous)
Get a low-level, FS reference iterator.
|
LowLevelIterator |
ll_rootIterator()
Get a low-level, FS reference iterator specifying instances of
the precise type only (i.e.
|
abstract ComparableIntPointerIterator |
pointerIterator(IntComparator comp,
int[] detectIllegalIndexUpdates,
int typeCode) |
protected abstract IntPointerIterator |
refIterator() |
protected abstract IntPointerIterator |
refIterator(int fsCode) |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitflushll_iterator, sizeprotected CASImpl lowLevelCAS
public abstract ComparableIntPointerIterator pointerIterator(IntComparator comp, int[] detectIllegalIndexUpdates, int typeCode)
public FSIndexComparator getComparator()
getComparator in interface FSIndexImplpublic int getIndexingStrategy()
FSIndexgetIndexingStrategy in interface FSIndex<T extends FeatureStructure>SORTED_INDEX, BAG_INDEX or SET_INDEX.public int ll_compare(int ref1,
int ref2)
ll_compare in interface LowLevelIndexpublic int compare(int fs1,
int fs2)
IntComparatorcompare in interface IntComparatorfs1 - first int.fs2 - second int.-1 if i < j; 1 if
i > j; 0 if i == j.public final boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic int compare(FeatureStructure fs1, FeatureStructure fs2)
FSIndexcompare in interface FSIndex<T extends FeatureStructure>-1 if fs1 < fs2; 0 if
fs1 = fs2; 1 else.FSIndex.compare(FeatureStructure, FeatureStructure)public Type getType()
FSIndexgetType in interface FSIndex<T extends FeatureStructure>FSIndex.getType()protected abstract IntPointerIterator refIterator()
public IntPointerIterator getIntIterator()
getIntIterator in interface FSIndexImplprotected abstract IntPointerIterator refIterator(int fsCode)
public FSIterator<T> iterator()
FSIndexiterator in interface java.lang.Iterable<T extends FeatureStructure>iterator in interface FSIndex<T extends FeatureStructure>FSIndex.iterator()public FSIterator<T> iterator(FeatureStructure fs)
FSIndexget() method is
greater than or equal to fs, and any previous FS is less than FS.
If no such position exists, the iterator will be invalid.iterator in interface FSIndex<T extends FeatureStructure>fs - The feature structure at which the iterator should be positioned.fs, if it exists. An invalid iterator, else.FSIndex.iterator(FeatureStructure)public abstract void deleteFS(FeatureStructure fs)
fs - public LowLevelIterator ll_iterator(boolean ambiguous)
LowLevelIndexll_iterator in interface LowLevelIndexambiguous - When set to false, iterator will be disambiguated.public LowLevelIterator ll_rootIterator()
LowLevelIndexll_rootIterator in interface LowLevelIndexCopyright © 2013. All Rights Reserved.