T
- the highest type returned by these iteratorspublic abstract class FsIterator_multiple_indexes<T extends FeatureStructure> extends Object implements LowLevelIterator<T>
Modifier and Type | Field and Description |
---|---|
protected LowLevelIterator<T>[] |
allIterators |
protected Comparator<TOP> |
comparatorMaybeNoTypeWithoutId
for set and sorted, both ignore id
because this comparator is not used for comparing within the index, only for
compares between index items and outside args.
|
protected LowLevelIndex<T> |
main_idx |
protected LowLevelIterator<T>[] |
nonEmptyIterators |
FS_ITERATOR_LOW_LEVEL_EMPTY, IS_ORDERED
Constructor and Description |
---|
FsIterator_multiple_indexes(FsIterator_multiple_indexes<T> v)
/**
copy constructor
|
FsIterator_multiple_indexes(LowLevelIndex<T> main_idx,
LowLevelIterator<T>[] iterators,
Comparator<TOP> comparatorMaybeNoTypeWithoutId) |
Modifier and Type | Method and Description |
---|---|
boolean |
isIndexesHaveBeenUpdated() |
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
|
protected void |
separate_into_empty_indexes_and_non_empty_iterators()
Also resets all non-empty iterators to current values
|
int |
size()
return the size of the collection being iterated over, if available.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getArrayList, getComparator, isMoveToSupported, ll_get, ll_remove, moveTo, moveTo, moveToFirst, moveToFirstNoReinit, moveToLast, moveToLastNoReinit, moveToNoReinit
add, copy, get, getNvc, getType, hasNext, hasPrevious, isValid, moveToNext, moveToNextNvc, moveToPrevious, moveToPreviousNvc, next, nextIndex, nextNvc, previous, previousIndex, previousNvc, remove, set, spliterator, stream
forEachRemaining
protected final LowLevelIterator<T extends FeatureStructure>[] allIterators
protected LowLevelIterator<T extends FeatureStructure>[] nonEmptyIterators
protected final Comparator<TOP> comparatorMaybeNoTypeWithoutId
protected final LowLevelIndex<T extends FeatureStructure> main_idx
public FsIterator_multiple_indexes(LowLevelIndex<T> main_idx, LowLevelIterator<T>[] iterators, Comparator<TOP> comparatorMaybeNoTypeWithoutId)
public FsIterator_multiple_indexes(FsIterator_multiple_indexes<T> v)
v
- the original to copyprotected void separate_into_empty_indexes_and_non_empty_iterators()
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 boolean isIndexesHaveBeenUpdated()
isIndexesHaveBeenUpdated
in interface LowLevelIterator<T extends FeatureStructure>
public boolean maybeReinitIterator()
LowLevelIterator
maybeReinitIterator
in interface LowLevelIterator<T extends FeatureStructure>
public LowLevelIndex<T> ll_getIndex()
LowLevelIterator
ll_getIndex
in interface LowLevelIterator<T extends FeatureStructure>
public int size()
FSIterator
size
in interface FSIterator<T extends FeatureStructure>
Copyright © 2006–2021 The Apache Software Foundation. All rights reserved.