T
- the Java cover class type for this index, passed along to (wrapped) iterators producing Java cover classespublic abstract class FSLeafIndexImpl<T extends FeatureStructure> extends Object implements Comparator<T>, org.apache.uima.internal.util.IntComparator, FSIndexImpl
Modifier and Type | Field and Description |
---|---|
protected CASImpl |
lowLevelCAS |
Modifier | Constructor and Description |
---|---|
protected |
FSLeafIndexImpl(CASImpl cas,
Type type,
int indexType)
Constructor for FSLeafIndexImpl.
|
Modifier and Type | Method and Description |
---|---|
protected abstract 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(FeatureStructure fs1,
FeatureStructure fs2) |
int |
compare(int fs1,
int fs2)
Note: may return other than -1 , 0, and 1 (e.g., might return -6)
|
abstract void |
deleteFS(FeatureStructure fs)
Method deleteFS.
|
boolean |
equals(Object obj) |
FSIndexComparator |
getComparator() |
int |
getIndexingStrategy() |
org.apache.uima.internal.util.IntPointerIterator |
getIntIterator() |
Type |
getType() |
int |
hashCode() |
FSIterator<T> |
iterator(FeatureStructure fs) |
int |
ll_compare(int fs1,
int fs2)
Note: may return other than -1 , 0, and 1 (e.g., might return -6)
|
LowLevelIterator |
ll_iterator(boolean ambiguous)
Get a low-level, FS reference iterator.
|
LowLevelIterator |
ll_rootIterator()
Get a low-level, FS reference iterator specifying instances of
the precise type only (i.e.
|
abstract org.apache.uima.internal.util.ComparableIntPointerIterator<T> |
pointerIterator(org.apache.uima.internal.util.IntComparator comp,
int[] detectIllegalIndexUpdates,
int typeCode) |
protected abstract org.apache.uima.internal.util.IntPointerIterator |
refIterator() |
protected abstract org.apache.uima.internal.util.IntPointerIterator |
refIterator(int fsCode) |
String |
toString() |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
comparing, comparing, comparingDouble, comparingInt, comparingLong, naturalOrder, nullsFirst, nullsLast, reversed, reverseOrder, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
flush
ll_iterator, size
protected final CASImpl lowLevelCAS
public abstract org.apache.uima.internal.util.ComparableIntPointerIterator<T> pointerIterator(org.apache.uima.internal.util.IntComparator comp, int[] detectIllegalIndexUpdates, int typeCode)
public FSIndexComparator getComparator()
getComparator
in interface FSIndexImpl
public int getIndexingStrategy()
public int ll_compare(int fs1, int fs2)
ll_compare
in interface LowLevelIndex
fs1
- -fs2
- -public int compare(int fs1, int fs2)
compare
in interface org.apache.uima.internal.util.IntComparator
fs1
- -fs2
- -public boolean equals(Object obj)
equals
in interface Comparator<T extends FeatureStructure>
equals
in class Object
public int compare(FeatureStructure fs1, FeatureStructure fs2)
compare
in interface Comparator<T extends FeatureStructure>
FSIndex.compare(FeatureStructure, FeatureStructure)
public Type getType()
FSIndex.getType()
protected abstract org.apache.uima.internal.util.IntPointerIterator refIterator()
public org.apache.uima.internal.util.IntPointerIterator getIntIterator()
getIntIterator
in interface FSIndexImpl
protected abstract void bulkAddTo(org.apache.uima.internal.util.IntVector v)
v
- the set of items to addprotected abstract org.apache.uima.internal.util.IntPointerIterator refIterator(int fsCode)
public FSIterator<T> iterator(FeatureStructure fs)
public abstract void deleteFS(FeatureStructure fs)
fs
- -public LowLevelIterator ll_iterator(boolean ambiguous)
LowLevelIndex
ll_iterator
in interface LowLevelIndex
ambiguous
- When set to false
, iterator will be disambiguated.public LowLevelIterator ll_rootIterator()
LowLevelIndex
ll_rootIterator
in interface LowLevelIndex
Copyright © 2006–2021 The Apache Software Foundation. All rights reserved.