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(org.apache.uima.internal.util.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.
|
org.apache.uima.internal.util.ComparableIntPointerIterator<T> |
pointerIterator(org.apache.uima.internal.util.IntComparator comp,
int[] detectIllegalIndexUpdates,
int typeCode)
The comp value is only used when ordering iterators in type/subtype collections
|
protected org.apache.uima.internal.util.IntPointerIterator |
refIterator() |
protected org.apache.uima.internal.util.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, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitcomparing, comparing, comparingDouble, comparingInt, comparingLong, naturalOrder, nullsFirst, nullsLast, reversed, reverseOrder, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLongpublic void flush()
public final boolean insert(int fs)
public org.apache.uima.internal.util.ComparableIntPointerIterator<T> pointerIterator(org.apache.uima.internal.util.IntComparator comp, int[] detectIllegalIndexUpdates, int typeCode)
pointerIterator in class FSLeafIndexImpl<T extends FeatureStructure>protected org.apache.uima.internal.util.IntPointerIterator refIterator()
refIterator in class FSLeafIndexImpl<T extends FeatureStructure>FSLeafIndexImpl.refIterator()public LowLevelIterator ll_iterator()
LowLevelIndexprotected org.apache.uima.internal.util.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()
LowLevelIndexFSIndex.size()public void deleteFS(FeatureStructure fs)
FSLeafIndexImpldeleteFS 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(org.apache.uima.internal.util.IntVector v)
FSLeafIndexImplbulkAddTo in class FSLeafIndexImpl<T extends FeatureStructure>v - the set of items to addpublic int compare(int fs1,
int fs2)
FSLeafIndexImplcompare in interface org.apache.uima.internal.util.IntComparatorcompare in class FSLeafIndexImpl<T extends FeatureStructure>fs1 - -fs2 - -Copyright © 2006–2021 The Apache Software Foundation. All rights reserved.