Package org.apache.uima.cas.impl
Class FsIterator_bag_pear<T extends FeatureStructure>
java.lang.Object
org.apache.uima.cas.impl.FsIterator_singletype<T>
org.apache.uima.cas.impl.FsIterator_bag<T>
org.apache.uima.cas.impl.FsIterator_bag_pear<T>
- Type Parameters:
T
- the type of FSs being returned from the iterator, supplied by the calling context
- All Implemented Interfaces:
Iterator<T>
,ListIterator<T>
,FSIterator<T>
,LowLevelIterator<T>
This version of the FsIterator is used while iterating within a PEAR Indexes keep references to
the base (possibly non-pear) version of FSs. During iteration, within PEARs, if there's a
different JCas class for the type, the corresponding class instance needs to be found (or
created) and returned.
-
Field Summary
Fields inherited from class org.apache.uima.cas.impl.FsIterator_bag
bag, fsBagIndex
Fields inherited from class org.apache.uima.cas.impl.FsIterator_singletype
ti
Fields inherited from interface org.apache.uima.cas.impl.LowLevelIterator
FS_ITERATOR_LOW_LEVEL_EMPTY, IS_ORDERED
-
Constructor Summary
ConstructorsConstructorDescriptionFsIterator_bag_pear
(FsIndex_bag<T> fsBagIndex, TypeImpl ti, CopyOnWriteIndexPart cow_wrapper) -
Method Summary
Methods inherited from class org.apache.uima.cas.impl.FsIterator_bag
copyCommonSetup, getComparator, isIndexesHaveBeenUpdated, isValid, ll_getIndex, ll_indexSizeMaybeNotCurrent, ll_maxAnnotSpan, maybeReinitIterator, moveToFirstNoReinit, moveToLastNoReinit, moveToNextNvc, moveToNoReinit, moveToPreviousNvc, size
Methods inherited from class org.apache.uima.cas.impl.FsIterator_singletype
maybeTraceCowUsingCopy, toString
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.apache.uima.cas.FSIterator
add, get, getType, hasNext, hasPrevious, moveToNext, moveToPrevious, next, nextIndex, nextNvc, previous, previousIndex, previousNvc, remove, set, spliterator, stream
Methods inherited from interface java.util.Iterator
forEachRemaining
Methods inherited from interface org.apache.uima.cas.impl.LowLevelIterator
getArrayList, isMoveToSupported, ll_get, ll_remove, moveTo, moveTo, moveToFirst, moveToLast
-
Constructor Details
-
FsIterator_bag_pear
FsIterator_bag_pear(FsIndex_bag<T> fsBagIndex, TypeImpl ti, CopyOnWriteIndexPart cow_wrapper)
-
-
Method Details
-
getNvc
Description copied from interface:FSIterator
Get the structure the iterator is pointing at. Throws various unchecked exceptions, if the iterator is not valid- Specified by:
getNvc
in interfaceFSIterator<T extends FeatureStructure>
- Overrides:
getNvc
in classFsIterator_bag<T extends FeatureStructure>
- Returns:
- The structure the iterator is pointing at.
-
copy
Description copied from interface:FSIterator
Copy this iterator.- Specified by:
copy
in interfaceFSIterator<T extends FeatureStructure>
- Overrides:
copy
in classFsIterator_bag<T extends FeatureStructure>
- Returns:
- A copy of this iterator, pointing at the same element.
-