T - the Java cover class type for this index, passed along to (wrapped) iterators producing Java cover classespublic class FSBagIndex<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)
For bag indexes, compare equal only if identical addresses
|
boolean |
contains(FeatureStructure fs) |
void |
deleteFS(FeatureStructure fs)
Method deleteFS.
|
FeatureStructure |
find(FeatureStructure fs) |
void |
flush() |
int |
hashCode() |
boolean |
insert(int fs) |
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) |
protected org.apache.uima.internal.util.IntPointerIterator |
refIterator() |
protected org.apache.uima.internal.util.IntPointerIterator |
refIterator(int fsCode) |
boolean |
remove(int fsRef) |
int |
size()
Get the number of FSs in this index.
|
compare, equals, getComparator, getIndexingStrategy, getIntIterator, getType, 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 int compare(int fs1,
int fs2)
compare in interface org.apache.uima.internal.util.IntComparatorcompare in class FSLeafIndexImpl<T extends FeatureStructure>fs1 - -fs2 - -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 fsCode)
refIterator in class FSLeafIndexImpl<T extends FeatureStructure>FSLeafIndexImpl.refIterator(int)public boolean contains(FeatureStructure fs)
fs - A Feature Structure used a template to match for equality with the
FSs in the index.true if the index contains such an element.FSIndex.contains(FeatureStructure)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.public int hashCode()
hashCode in class FSLeafIndexImpl<T extends FeatureStructure>protected void bulkAddTo(org.apache.uima.internal.util.IntVector v)
FSLeafIndexImplbulkAddTo in class FSLeafIndexImpl<T extends FeatureStructure>v - the set of items to addCopyright © 2006–2021 The Apache Software Foundation. All rights reserved.