|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.uima.cas.impl.FSLeafIndexImpl
org.apache.uima.cas.impl.FSBagIndex
public class FSBagIndex
| Field Summary |
|---|
| Fields inherited from class org.apache.uima.cas.impl.FSLeafIndexImpl |
|---|
lowLevelCAS |
| Fields inherited from interface org.apache.uima.cas.FSIndex |
|---|
BAG_INDEX, DEFAULT_BAG_INDEX, SET_INDEX, SORTED_INDEX |
| Method Summary | |
|---|---|
int |
compare(int fs1,
int fs2)
Compare two ints. |
boolean |
contains(FeatureStructure fs)
Check if the index contains an element equal to the given feature structure according to the ordering of the 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 ordering of the index. |
void |
flush()
|
int |
hashCode()
|
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)
|
void |
remove(int fsRef)
|
int |
size()
Return the number of feature structures in this index. |
| Methods inherited from class org.apache.uima.cas.impl.FSLeafIndexImpl |
|---|
compare, equals, getComparator, getIndexingStrategy, getIntIterator, getType, iterator, iterator, ll_compare, ll_iterator, ll_rootIterator |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public void flush()
public final boolean insert(int fs)
public int compare(int fs1,
int fs2)
IntComparator
compare in interface IntComparatorcompare in class FSLeafIndexImplfs1 - first int.fs2 - second int.
-1 if i < j; 1 if
i > j; 0 if i == j.
public ComparableIntPointerIterator pointerIterator(IntComparator comp,
int[] detectIllegalIndexUpdates,
int typeCode)
pointerIterator in class FSLeafIndexImplprotected IntPointerIterator refIterator()
refIterator in class FSLeafIndexImplFSLeafIndexImpl.refIterator()public LowLevelIterator ll_iterator()
LowLevelIndex
protected IntPointerIterator refIterator(int fsCode)
refIterator in class FSLeafIndexImplFSLeafIndexImpl.refIterator(int)public boolean contains(FeatureStructure fs)
FSIndex
fs - The FS we're looking for.
true if the index contains such an element.FSIndex.contains(FeatureStructure)public FeatureStructure find(FeatureStructure fs)
FSIndex
fs - The FS we're looking for.
fs, or null if no such FS exists.FSIterator.moveTo(FeatureStructure)public int size()
FSIndex
FSIndex.size()public void deleteFS(FeatureStructure fs)
FSLeafIndexImpl
deleteFS in class FSLeafIndexImplFSLeafIndexImpl.deleteFS(org.apache.uima.cas.FeatureStructure)public void remove(int fsRef)
public int hashCode()
hashCode in class FSLeafIndexImpl
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||