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 class
Version of this class used for protect blocks - where multiple FSs may be removed.(package private) static class
Version 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) void
addback()
add back all the FSs that were removed in a protect block -- for "Multiple" subclass(package private) void
add back the single FS that was removed due to - automatic protection or - delta deserialization or - updating document annotation -- for "Single" subclass(package private) abstract void
clear()
void
close()
does an add back if neededstatic FSsTobeAddedback
createMultiple
(CASImpl cas) static FSsTobeAddedback
protected void
log
(FeatureStructureImplC fs, FSIndexRepositoryImpl view) protected void
log
(FeatureStructureImplC fs, FSIndexRepositoryImpl view, int count) protected void
log
(FSIndexRepositoryImpl view) protected void
log
(FSIndexRepositoryImpl view, int count) protected void
logPart
(FSIndexRepository view) private void
(package private) void
(package private) void
recordRemove
(FSIndexRepositoryImpl view, int count) (package private) void
recordRemove
(TOP fs, FSIndexRepositoryImpl view) (package private) void
recordRemove
(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:
close
in interfaceAutoCloseable
- Specified by:
close
in 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
-