|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.uima.cas.impl.FSLeafIndexImpl<T>
public abstract class FSLeafIndexImpl<T extends FeatureStructure>
Class comment for FSLeafIndexImpl.java goes here.
| Field Summary | |
|---|---|
protected CASImpl |
lowLevelCAS
|
| Fields inherited from interface org.apache.uima.cas.FSIndex |
|---|
BAG_INDEX, DEFAULT_BAG_INDEX, SET_INDEX, SORTED_INDEX |
| Constructor Summary | |
|---|---|
protected |
FSLeafIndexImpl(CASImpl cas,
Type type,
int indexType)
Constructor for FSLeafIndexImpl. |
| Method Summary | |
|---|---|
int |
compare(FeatureStructure fs1,
FeatureStructure fs2)
Compare two feature structures according to the ordering relation of the index. |
int |
compare(int fs1,
int fs2)
Compare two ints. |
abstract void |
deleteFS(FeatureStructure fs)
Method deleteFS. |
boolean |
equals(java.lang.Object o)
|
FSIndexComparator |
getComparator()
|
int |
getIndexingStrategy()
Return the indexing strategy. |
IntPointerIterator |
getIntIterator()
|
Type |
getType()
Return the type of feature structures this index contains. |
int |
hashCode()
|
FSIterator<T> |
iterator()
Return an iterator over the index. |
FSIterator<T> |
iterator(FeatureStructure fs)
Return an iterator over the index. |
int |
ll_compare(int ref1,
int ref2)
|
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 ComparableIntPointerIterator |
pointerIterator(IntComparator comp,
int[] detectIllegalIndexUpdates,
int typeCode)
|
protected abstract IntPointerIterator |
refIterator()
|
protected abstract IntPointerIterator |
refIterator(int fsCode)
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.apache.uima.cas.FSIndex |
|---|
contains, find, size |
| Methods inherited from interface org.apache.uima.cas.impl.FSIndexImpl |
|---|
flush |
| Methods inherited from interface org.apache.uima.cas.impl.LowLevelIndex |
|---|
ll_iterator, size |
| Field Detail |
|---|
protected CASImpl lowLevelCAS
| Constructor Detail |
|---|
protected FSLeafIndexImpl(CASImpl cas,
Type type,
int indexType)
| Method Detail |
|---|
public abstract ComparableIntPointerIterator pointerIterator(IntComparator comp,
int[] detectIllegalIndexUpdates,
int typeCode)
public FSIndexComparator getComparator()
getComparator in interface FSIndexImplpublic int getIndexingStrategy()
FSIndex
getIndexingStrategy in interface FSIndex<T extends FeatureStructure>SORTED_INDEX, BAG_INDEX or SET_INDEX.
public int ll_compare(int ref1,
int ref2)
ll_compare in interface LowLevelIndex
public int compare(int fs1,
int fs2)
IntComparator
compare in interface IntComparatorfs1 - first int.fs2 - second int.
-1 if i < j; 1 if
i > j; 0 if i == j.public final boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Object
public int compare(FeatureStructure fs1,
FeatureStructure fs2)
FSIndex
compare in interface FSIndex<T extends FeatureStructure>-1 if fs1 < fs2; 0 if
fs1 = fs2; 1 else.FSIndex.compare(FeatureStructure, FeatureStructure)public Type getType()
FSIndex
getType in interface FSIndex<T extends FeatureStructure>FSIndex.getType()protected abstract IntPointerIterator refIterator()
public IntPointerIterator getIntIterator()
getIntIterator in interface FSIndexImplprotected abstract IntPointerIterator refIterator(int fsCode)
public FSIterator<T> iterator()
FSIndex
iterator in interface java.lang.Iterable<T extends FeatureStructure>iterator in interface FSIndex<T extends FeatureStructure>FSIndex.iterator()public FSIterator<T> iterator(FeatureStructure fs)
FSIndexget() method is
greater than or equal to fs, and any previous FS is less than FS.
If no such position exists, the iterator will be invalid.
iterator in interface FSIndex<T extends FeatureStructure>fs - The feature structure at which the iterator should be positioned.
fs, if it exists. An invalid iterator, else.FSIndex.iterator(FeatureStructure)public abstract void deleteFS(FeatureStructure fs)
fs - public LowLevelIterator ll_iterator(boolean ambiguous)
LowLevelIndex
ll_iterator in interface LowLevelIndexambiguous - When set to false, iterator will be disambiguated.
public LowLevelIterator ll_rootIterator()
LowLevelIndex
ll_rootIterator in interface LowLevelIndex
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||