Package org.apache.uima.cas.impl
Class FSsTobeAddedback
- java.lang.Object
-
- org.apache.uima.cas.impl.FSsTobeAddedback
-
- All Implemented Interfaces:
java.lang.AutoCloseable,AutoCloseableNoException
- Direct Known Subclasses:
FSsTobeAddedback.FSsTobeAddedbackMultiple,FSsTobeAddedback.FSsTobeAddedbackSingle
abstract class FSsTobeAddedback extends java.lang.Object implements AutoCloseableNoException
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 Classes Modifier and Type Class Description (package private) static classFSsTobeAddedback.FSsTobeAddedbackMultipleVersion of this class used for protect blocks - where multiple FSs may be removed.(package private) static classFSsTobeAddedback.FSsTobeAddedbackSingleVersion of this class for recording 1 FS
-
Constructor Summary
Constructors Constructor Description FSsTobeAddedback()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description (package private) voidaddback()add back all the FSs that were removed in a protect block -- for "Multiple" subclass(package private) voidaddback(TOP fs)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 voidclear()voidclose()does an add back if neededstatic FSsTobeAddedbackcreateMultiple(CASImpl cas)static FSsTobeAddedbackcreateSingle()protected 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 voidlogPart(FeatureStructureImplC fs, FSIndexRepositoryImpl view)(package private) voidrecordRemove(FSIndexRepositoryImpl view)(package private) voidrecordRemove(FSIndexRepositoryImpl view, int count)(package private) voidrecordRemove(TOP fs, FSIndexRepositoryImpl view)(package private) voidrecordRemove(TOP fs, FSIndexRepositoryImpl view, int count)
-
-
-
Field Detail
-
SHOW
static final boolean SHOW
- See Also:
- Constant Field Values
-
removes
static final java.util.concurrent.atomic.AtomicInteger removes
-
-
Method Detail
-
close
public void close()
does an add back if needed- Specified by:
closein interfacejava.lang.AutoCloseable- Specified by:
closein interfaceAutoCloseableNoException
-
logPart
protected void logPart(FSIndexRepository view)
-
log
protected void log(FSIndexRepositoryImpl view, int count)
-
logPart
private void logPart(FeatureStructureImplC fs, FSIndexRepositoryImpl view)
-
log
protected void log(FeatureStructureImplC fs, FSIndexRepositoryImpl view, int count)
-
log
protected void log(FSIndexRepositoryImpl view)
-
log
protected void log(FeatureStructureImplC fs, FSIndexRepositoryImpl view)
-
recordRemove
void recordRemove(FSIndexRepositoryImpl view)
-
recordRemove
void recordRemove(FSIndexRepositoryImpl view, int count)
-
recordRemove
void recordRemove(TOP fs, FSIndexRepositoryImpl view)
-
recordRemove
void recordRemove(TOP fs, FSIndexRepositoryImpl view, int count)
-
addback
void addback()
add back all the FSs that were removed in a protect block -- for "Multiple" subclass
-
addback
void addback(TOP fs)
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
public static FSsTobeAddedback createSingle()
- Returns:
- an impl of this class
-
createMultiple
public static FSsTobeAddedback createMultiple(CASImpl cas)
- Parameters:
cas- the view where the protect block was set up- Returns:
- an instance for recording removes of multiple FSs
-
-