T
- result typepublic class FsIterator_subtypes_ordered<T extends FeatureStructure> extends FsIterator_multiple_indexes<T>
Modifier and Type | Field and Description |
---|---|
protected int |
lastValidIteratorIndex
index into nonEmptyIterators, shows last valid one
|
allIterators, comparatorMaybeNoTypeWithoutId, main_idx, nonEmptyIterators
FS_ITERATOR_LOW_LEVEL_EMPTY, IS_ORDERED
Constructor and Description |
---|
FsIterator_subtypes_ordered(org.apache.uima.cas.impl.FsIndex_iicp<T> iicp,
Comparator<TOP> comparatorMaybeNoTypeWithoutId) |
Modifier and Type | Method and Description |
---|---|
FSIterator<T> |
copy()
Copy this iterator.
|
Comparator<TOP> |
getComparator() |
T |
getNvc()
Get the structure the iterator is pointing at.
|
boolean |
isMoveToSupported() |
boolean |
isValid()
Check if this iterator is valid.
|
void |
moveToFirstNoReinit()
Move operators have to move a group of iterators for this type and all its subtypes
|
void |
moveToLastNoReinit()
Internal use
same as moveToLast, but won't reset to use current contents of index if index has changed
|
void |
moveToNextNvc()
version of moveToNext which bypasses the isValid check - call only if you've just done this check yourself
|
void |
moveToNoReinit(FeatureStructure fs)
Internal use
same as moveTo(fs), but won't reset to use current contents of index if index has changed
|
void |
moveToPreviousNvc()
version of moveToPrevious which bypasses the isValid check - call only if you've just done this check yourself
|
isIndexesHaveBeenUpdated, ll_getIndex, ll_indexSizeMaybeNotCurrent, ll_maxAnnotSpan, maybeReinitIterator, separate_into_empty_indexes_and_non_empty_iterators, size
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getArrayList, ll_get, ll_remove, moveTo, moveTo, moveToFirst, moveToLast
add, get, getType, hasNext, hasPrevious, moveToNext, moveToPrevious, next, nextIndex, nextNvc, previous, previousIndex, previousNvc, remove, set, spliterator, stream
forEachRemaining
protected int lastValidIteratorIndex
public FsIterator_subtypes_ordered(org.apache.uima.cas.impl.FsIndex_iicp<T> iicp, Comparator<TOP> comparatorMaybeNoTypeWithoutId)
public void moveToFirstNoReinit()
public void moveToLastNoReinit()
LowLevelIterator
public void moveToNextNvc()
FSIterator
public void moveToPreviousNvc()
FSIterator
public boolean isValid()
FSIterator
true
if the iterator is valid.public T getNvc() throws NoSuchElementException
FSIterator
NoSuchElementException
public void moveToNoReinit(FeatureStructure fs)
LowLevelIterator
fs
- the fs to use as the template identifying the place to move topublic FSIterator<T> copy()
FSIterator
public Comparator<TOP> getComparator()
public boolean isMoveToSupported()
Copyright © 2006–2021 The Apache Software Foundation. All rights reserved.