public class FSVectorIndex<T extends FeatureStructure> extends FSLeafIndexImpl<T>
lowLevelCASBAG_INDEX, DEFAULT_BAG_INDEX, SET_INDEX, SORTED_INDEX| 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
|
boolean |
contains(FeatureStructure fs)
Check if the index contains an element equal to the given feature structure
according to the comparators defined for this index.
|
void |
deleteFS(FeatureStructure fs)
Method deleteFS.
|
FeatureStructure |
find(FeatureStructure fs)
Find an entry in the index "equal to" the given feature structure according to the comparators specified
for this index.
|
void |
flush() |
boolean |
insert(int fs) |
LowLevelIterator |
ll_iterator()
Get a low-level, FS reference iterator.
|
ComparableIntPointerIterator |
pointerIterator(IntComparator comp,
int[] detectIllegalIndexUpdates,
int typeCode) |
protected IntPointerIterator |
refIterator() |
protected IntPointerIterator |
refIterator(int fsCode) |
int |
size()
Return the number of feature structures in this index.
|
compare, compare, equals, getComparator, getIndexingStrategy, getIntIterator, getType, hashCode, iterator, iterator, ll_compare, ll_iterator, ll_rootIterator, toString, withSnapshotIteratorspublic void flush()
public final boolean insert(int fs)
public ComparableIntPointerIterator 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()protected IntPointerIterator refIterator(int fsCode)
refIterator in class FSLeafIndexImpl<T extends FeatureStructure>FSLeafIndexImpl.refIterator(int)public boolean contains(FeatureStructure fs)
FSIndexfs - 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)
FSIndexfs - A Feature Structure used a template to match with the Feature Structures in the index.null if no such FS exists.FSIterator.moveTo(FeatureStructure)public int size()
FSIndexFSIndex.size()public void deleteFS(FeatureStructure fs)
FSLeafIndexImpldeleteFS in class FSLeafIndexImpl<T extends FeatureStructure>fs - -FSLeafIndexImpl.deleteFS(org.apache.uima.cas.FeatureStructure)public LowLevelIterator ll_iterator()
LowLevelIndexprotected void bulkAddTo(IntVector v)
FSLeafIndexImplbulkAddTo in class FSLeafIndexImpl<T extends FeatureStructure>Copyright © 2015. All rights reserved.