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, fsBagIndexFields inherited from class org.apache.uima.cas.impl.FsIterator_singletype
tiFields 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, sizeMethods inherited from class org.apache.uima.cas.impl.FsIterator_singletype
maybeTraceCowUsingCopy, toStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.apache.uima.cas.FSIterator
add, get, getType, hasNext, hasPrevious, moveToNext, moveToPrevious, next, nextIndex, nextNvc, previous, previousIndex, previousNvc, remove, set, spliterator, streamMethods inherited from interface java.util.Iterator
forEachRemainingMethods 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:FSIteratorGet the structure the iterator is pointing at. Throws various unchecked exceptions, if the iterator is not valid- Specified by:
getNvcin interfaceFSIterator<T extends FeatureStructure>- Overrides:
getNvcin classFsIterator_bag<T extends FeatureStructure>- Returns:
- The structure the iterator is pointing at.
-
copy
Description copied from interface:FSIteratorCopy this iterator.- Specified by:
copyin interfaceFSIterator<T extends FeatureStructure>- Overrides:
copyin classFsIterator_bag<T extends FeatureStructure>- Returns:
- A copy of this iterator, pointing at the same element.
-