public abstract class FSLeafIndexImpl<T extends FeatureStructure> extends 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(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, wait
flush
ll_iterator, size
protected CASImpl lowLevelCAS
public abstract ComparableIntPointerIterator pointerIterator(IntComparator comp, int[] detectIllegalIndexUpdates, int typeCode)
public FSIndexComparator getComparator()
getComparator
in interface FSIndexImpl
public int getIndexingStrategy()
FSIndex
getIndexingStrategy
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 LowLevelIndex
public int compare(int fs1, int fs2)
IntComparator
compare
in interface IntComparator
fs1
- first int.fs2
- second int.-1
if i < j
; 1
if
i > j
; 0
if i == j
.public int compare(FeatureStructure fs1, FeatureStructure fs2)
FSIndex
compare
in interface FSIndex<T extends FeatureStructure>
fs1
- the first Feature Structure to comparefs2
- the second Feature Structure to compare-1
if fs1 < fs2
; 0
if
fs1 = fs2
; 1
else.FSIndex.compare(FeatureStructure, FeatureStructure)
public Type getType()
FSIndex
getType
in interface FSIndex<T extends FeatureStructure>
FSIndex.getType()
protected abstract IntPointerIterator refIterator()
public IntPointerIterator getIntIterator()
getIntIterator
in interface FSIndexImpl
protected abstract IntPointerIterator refIterator(int fsCode)
public FSIterator<T> iterator()
FSIndex
iterator
in interface Iterable<T extends FeatureStructure>
iterator
in interface FSIndex<T extends FeatureStructure>
FSIndex.iterator()
public FSIterator<T> iterator(FeatureStructure fs)
FSIndex
get()
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)
LowLevelIndex
ll_iterator
in interface LowLevelIndex
ambiguous
- When set to false
, iterator will be disambiguated.public LowLevelIterator ll_rootIterator()
LowLevelIndex
ll_rootIterator
in interface LowLevelIndex
Copyright © 2014. All rights reserved.