Package org.apache.uima.cas.impl
Class FSsTobeAddedback
java.lang.Object
org.apache.uima.cas.impl.FSsTobeAddedback
- All Implemented Interfaces:
AutoCloseable,AutoCloseableNoException
- Direct Known Subclasses:
FSsTobeAddedback.FSsTobeAddedbackMultiple,FSsTobeAddedback.FSsTobeAddedbackSingle
Record information on what was removed, from which view, and (optionally) how many times.
4 varieties:
1) for a single FS
a) without count
b) with count
2) for multiple FSs
a) without count
b) with count
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescription(package private) static classVersion of this class used for protect blocks - where multiple FSs may be removed.(package private) static classVersion of this class for recording 1 FS -
Field Summary
FieldsModifier and TypeFieldDescription(package private) static final AtomicInteger(package private) static final boolean -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) voidaddback()add back all the FSs that were removed in a protect block -- for "Multiple" subclass(package private) voidadd back the single FS that was removed due to - automatic protection or - delta deserialization or - updating document annotation -- for "Single" subclass(package private) abstract voidclear()voidclose()does an add back if neededstatic FSsTobeAddedbackcreateMultiple(CASImpl cas) static FSsTobeAddedbackprotected voidlog(FeatureStructureImplC fs, FSIndexRepositoryImpl view) protected voidlog(FeatureStructureImplC fs, FSIndexRepositoryImpl view, int count) protected voidlog(FSIndexRepositoryImpl view) protected voidlog(FSIndexRepositoryImpl view, int count) protected voidlogPart(FSIndexRepository view) private void(package private) void(package private) voidrecordRemove(FSIndexRepositoryImpl view, int count) (package private) voidrecordRemove(TOP fs, FSIndexRepositoryImpl view) (package private) voidrecordRemove(TOP fs, FSIndexRepositoryImpl view, int count)
-
Field Details
-
SHOW
static final boolean SHOW- See Also:
-
removes
-
-
Constructor Details
-
FSsTobeAddedback
FSsTobeAddedback()
-
-
Method Details
-
close
public void close()does an add back if needed- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceAutoCloseableNoException
-
logPart
-
log
-
logPart
-
log
-
log
-
log
-
recordRemove
-
recordRemove
-
recordRemove
-
recordRemove
-
addback
void addback()add back all the FSs that were removed in a protect block -- for "Multiple" subclass -
addback
add back the single FS that was removed due to - automatic protection or - delta deserialization or - updating document annotation -- for "Single" subclass -
clear
abstract void clear() -
createSingle
- Returns:
- an impl of this class
-
createMultiple
- Parameters:
cas- the view where the protect block was set up- Returns:
- an instance for recording removes of multiple FSs
-