Package org.apache.uima.cas.impl
Interface CopyOnWriteIndexPart<T extends FeatureStructure>
- All Known Implementing Classes:
- CopyOnWriteObjHashSet,- CopyOnWriteOrderedFsSet_array
public interface CopyOnWriteIndexPart<T extends FeatureStructure>
common APIs supporting the copy on write aspect of index parts
- 
Method SummaryModifier and TypeMethodDescriptionintcopyToArray(T[] target, int startingIndexInTarget) Copy FS refs to target from this index partbooleaniterator()voidintsize()
- 
Method Details- 
makeReadOnlyCopyvoid makeReadOnlyCopy()
- 
isOriginalboolean isOriginal()- Returns:
- true if this cow version is the same as the original. true means the index has not been updated
 
- 
sizeint size()- Returns:
- The number of elements in the index
 
- 
iterator- Returns:
- iterator over all the elements
 
- 
copyToArrayCopy FS refs to target from this index part- Parameters:
- target- the target array to copy into
- startingIndexInTarget- the starting index in the target array
- Returns:
- startingIndexInTarget + size
 
 
-