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 class
FSsTobeAddedback.FSsTobeAddedbackMultiple
Version of this class used for protect blocks - where multiple FSs may be removed.(package private) static class
FSsTobeAddedback.FSsTobeAddedbackSingle
Version 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) void
addback()
add back all the FSs that were removed in a protect block -- for "Multiple" subclass(package private) 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(package private) abstract void
clear()
void
close()
does an add back if neededstatic FSsTobeAddedback
createMultiple(CASImpl cas)
static FSsTobeAddedback
createSingle()
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
logPart(FeatureStructureImplC fs, FSIndexRepositoryImpl view)
(package private) void
recordRemove(FSIndexRepositoryImpl view)
(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 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:
close
in interfacejava.lang.AutoCloseable
- Specified by:
close
in 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
-
-