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:
java.util.Iterator<T>
,java.util.ListIterator<T>
,FSIterator<T>
,LowLevelIterator<T>
class FsIterator_bag_pear<T extends FeatureStructure> extends FsIterator_bag<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
Constructors Constructor Description FsIterator_bag_pear(FsIndex_bag<T> fsBagIndex, TypeImpl ti, CopyOnWriteIndexPart cow_wrapper)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description FsIterator_bag_pear<T>
copy()
Copy this iterator.T
getNvc()
Get the structure the iterator is pointing at.-
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 org.apache.uima.cas.impl.LowLevelIterator
getArrayList, isMoveToSupported, ll_get, ll_remove, moveTo, moveTo, moveToFirst, moveToLast
-
-
-
-
Constructor Detail
-
FsIterator_bag_pear
FsIterator_bag_pear(FsIndex_bag<T> fsBagIndex, TypeImpl ti, CopyOnWriteIndexPart cow_wrapper)
-
-
Method Detail
-
getNvc
public T 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
public FsIterator_bag_pear<T> 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.
-
-