T
- the Java cover class type for this index, passed along to (wrapped) iterators producing Java cover classespublic class FSIntArrayIndex<T extends FeatureStructure> extends FSLeafIndexImpl<T>
lowLevelCAS
Modifier and Type | Method and Description |
---|---|
protected void |
bulkAddTo(IntVector v)
For serialization: get all the items in this index and bulk add to an IntVector
|
int |
compare(int fs1,
int fs2)
Note: may return other than -1 , 0, and 1 (e.g., might return -6)
|
boolean |
contains(FeatureStructure fs) |
void |
deleteFS(FeatureStructure fs)
Method deleteFS.
|
FeatureStructure |
find(FeatureStructure fs) |
void |
flush() |
boolean |
insert(int fs) |
boolean |
ll_containsEq(int fsAddr) |
LowLevelIterator |
ll_iterator()
Get a low-level, FS reference iterator.
|
ComparableIntPointerIterator<T> |
pointerIterator(IntComparator comp,
int[] detectIllegalIndexUpdates,
int typeCode)
The comp value is only used when ordering iterators in type/subtype collections
|
protected IntPointerIterator |
refIterator() |
protected IntPointerIterator |
refIterator(int fsAddr) |
boolean |
remove(int fsRef) |
int |
size()
Get the number of FSs in this index.
|
compare, equals, getComparator, getIndexingStrategy, getIntIterator, getType, hashCode, iterator, ll_compare, ll_iterator, ll_rootIterator, toString
public void flush()
public final boolean insert(int fs)
public ComparableIntPointerIterator<T> pointerIterator(IntComparator comp, int[] detectIllegalIndexUpdates, int typeCode)
pointerIterator
in class FSLeafIndexImpl<T extends FeatureStructure>
protected IntPointerIterator refIterator()
refIterator
in class FSLeafIndexImpl<T extends FeatureStructure>
FSLeafIndexImpl.refIterator()
public LowLevelIterator ll_iterator()
LowLevelIndex
protected IntPointerIterator refIterator(int fsAddr)
refIterator
in class FSLeafIndexImpl<T extends FeatureStructure>
FSLeafIndexImpl.refIterator(int)
public boolean contains(FeatureStructure fs)
fs
- the feature structureFSIndex.contains(FeatureStructure)
public boolean ll_containsEq(int fsAddr)
public FeatureStructure find(FeatureStructure fs)
public int size()
LowLevelIndex
FSIndex.size()
public void deleteFS(FeatureStructure fs)
FSLeafIndexImpl
deleteFS
in class FSLeafIndexImpl<T extends FeatureStructure>
fs
- -FSLeafIndexImpl.deleteFS(org.apache.uima.cas.FeatureStructure)
public boolean remove(int fsRef)
fsRef
- - the Feature Structure to be removed.
Only this exact Feature Structure is removed (this is a stronger test than, for example,
what moveTo(fs) does, where the fs in that case is used as a template).
It is not an error if this exact Feature Structure is not in an index.protected void bulkAddTo(IntVector v)
FSLeafIndexImpl
bulkAddTo
in class FSLeafIndexImpl<T extends FeatureStructure>
v
- the set of items to addpublic int compare(int fs1, int fs2)
FSLeafIndexImpl
compare
in interface IntComparator
compare
in class FSLeafIndexImpl<T extends FeatureStructure>
fs1
- -fs2
- -Copyright © 2015. All rights reserved.