public class FsIterator_subtypes_snapshot<T extends FeatureStructure> extends Object implements LowLevelIterator<T>, Comparator<FeatureStructure>
FS_ITERATOR_LOW_LEVEL_EMPTY, IS_ORDERED| Constructor and Description | 
|---|
| FsIterator_subtypes_snapshot(FsIndex_flat<T> flatIndex,
                            Comparator<TOP> comparatorMaybeNoTypeWithoutId) | 
| FsIterator_subtypes_snapshot(T[] snapshot,
                            LowLevelIndex<T> index,
                            boolean is_unordered,
                            Comparator<TOP> comparatorMaybeNoTypeWithoutId)Alternative source iterator, 1st arg is different (not an "index", just an array) - altSources
 are unordered, and NoType is ignored - also supports backwards iterators, these are ordered
 (Maybe fix this in the future - this is not necessarily required) | 
| Modifier and Type | Method and Description | 
|---|---|
| int | compare(FeatureStructure fs1,
       FeatureStructure fs2) | 
| FSIterator<T> | copy()Copy this iterator. | 
| T | get()Get the structure the iterator is pointing at. | 
| Comparator<TOP> | getComparator() | 
| T | getNvc()Get the structure the iterator is pointing at. | 
| boolean | isIndexesHaveBeenUpdated() | 
| boolean | isValid()Check if this iterator is valid. | 
| LowLevelIndex<T> | ll_getIndex()Get the index for just the top most type of this iterator (excludes subtypes). | 
| int | ll_indexSizeMaybeNotCurrent() | 
| int | ll_maxAnnotSpan() | 
| boolean | maybeReinitIterator()Internal use | 
| void | moveToFirstNoReinit()Internal use same as moveToFirst, but won't reset to use current contents of index if index has
 changed | 
| void | moveToLastNoReinit()Internal use same as moveToLast, but won't reset to use current contents of index if index has
 changed | 
| void | moveToNext()Advance the iterator. | 
| 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 | moveToPrevious()Move the iterator one element back. | 
| void | moveToPreviousNvc()version of moveToPrevious which bypasses the isValid check - call only if you've just done this
 check yourself | 
| int | size()return the size of the collection being iterated over, if available. | 
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetArrayList, isMoveToSupported, ll_get, ll_remove, moveTo, moveTo, moveToFirst, moveToLastadd, getType, hasNext, hasPrevious, next, nextIndex, nextNvc, previous, previousIndex, previousNvc, remove, set, spliterator, streamforEachRemainingcomparing, comparing, comparingDouble, comparingInt, comparingLong, equals, naturalOrder, nullsFirst, nullsLast, reversed, reverseOrder, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLongpublic FsIterator_subtypes_snapshot(FsIndex_flat<T> flatIndex, Comparator<TOP> comparatorMaybeNoTypeWithoutId)
public FsIterator_subtypes_snapshot(T[] snapshot, LowLevelIndex<T> index, boolean is_unordered, Comparator<TOP> comparatorMaybeNoTypeWithoutId)
snapshot - -index - -is_unordered - - mark as unorderedcomparatorMaybeNoTypeWithoutId - -public boolean isValid()
FSIteratorisValid in interface FSIterator<T extends FeatureStructure>true if the iterator is valid.public T get() throws NoSuchElementException
FSIteratorget in interface FSIterator<T extends FeatureStructure>NoSuchElementException - If the iterator is not valid.public T getNvc()
FSIteratorgetNvc in interface FSIterator<T extends FeatureStructure>public void moveToNext()
FSIteratormoveToNext in interface FSIterator<T extends FeatureStructure>public void moveToNextNvc()
FSIteratormoveToNextNvc in interface FSIterator<T extends FeatureStructure>public void moveToPrevious()
FSIteratormoveToPrevious in interface FSIterator<T extends FeatureStructure>public void moveToPreviousNvc()
FSIteratormoveToPreviousNvc in interface FSIterator<T extends FeatureStructure>public void moveToFirstNoReinit()
LowLevelIteratormoveToFirstNoReinit in interface LowLevelIterator<T extends FeatureStructure>public void moveToLastNoReinit()
LowLevelIteratormoveToLastNoReinit in interface LowLevelIterator<T extends FeatureStructure>public void moveToNoReinit(FeatureStructure fs)
LowLevelIteratormoveToNoReinit in interface LowLevelIterator<T extends FeatureStructure>fs - the fs to use as the template identifying the place to move topublic FSIterator<T> copy()
FSIteratorcopy in interface FSIterator<T extends FeatureStructure>public int ll_indexSizeMaybeNotCurrent()
ll_indexSizeMaybeNotCurrent in interface LowLevelIterator<T extends FeatureStructure>public int ll_maxAnnotSpan()
ll_maxAnnotSpan in interface LowLevelIterator<T extends FeatureStructure>public LowLevelIndex<T> ll_getIndex()
LowLevelIteratorll_getIndex in interface LowLevelIterator<T extends FeatureStructure>public int compare(FeatureStructure fs1, FeatureStructure fs2)
compare in interface Comparator<FeatureStructure>public boolean isIndexesHaveBeenUpdated()
isIndexesHaveBeenUpdated in interface LowLevelIterator<T extends FeatureStructure>public boolean maybeReinitIterator()
LowLevelIteratormaybeReinitIterator in interface LowLevelIterator<T extends FeatureStructure>public Comparator<TOP> getComparator()
getComparator in interface LowLevelIterator<T extends FeatureStructure>public int size()
FSIteratorsize in interface FSIterator<T extends FeatureStructure>Copyright © 2006–2022 The Apache Software Foundation. All rights reserved.