Package org.apache.uima.cas.impl
Class MarkerImpl
java.lang.Object
org.apache.uima.cas.impl.MarkerImpl
- All Implemented Interfaces:
Marker
A MarkerImpl holds a high-water "mark" in the CAS,
for all views.
Typically, one is obtained via the createMarker call
on a CAS.
Currently only one marker is used per CAS.
The Marker enables testing on each CAS update if the
update is "below" or "above" the marker - this is
used for implementing delta serialization, in which
only the changed data is sent.
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) CASImpl
protected boolean
protected int
protected int
protected int
protected int
protected int
-
Constructor Summary
ConstructorsConstructorDescriptionMarkerImpl
(int nextFSAddr, int nextStringHeapAddr, int nextByteHeapAddr, int nextShortHeapAddr, int nextLongHeapAddr, CASImpl cas) -
Method Summary
Modifier and TypeMethodDescriptionint
int
int
int
int
(package private) boolean
isModified
(int addr) boolean
Test if a FeatureStructure in a CAS represented by thisMarker
existed before the mark was set, and has been modified.(package private) boolean
isNew
(int addr) boolean
boolean
isValid()
A Marker becomes invalid when theCAS
from which it was obtained is reset.
-
Field Details
-
nextFSId
protected int nextFSId -
nextStringHeapAddr
protected int nextStringHeapAddr -
nextByteHeapAddr
protected int nextByteHeapAddr -
nextShortHeapAddr
protected int nextShortHeapAddr -
nextLongHeapAddr
protected int nextLongHeapAddr -
isValid
protected boolean isValid -
cas
CASImpl cas
-
-
Constructor Details
-
MarkerImpl
MarkerImpl(int nextFSAddr, int nextStringHeapAddr, int nextByteHeapAddr, int nextShortHeapAddr, int nextLongHeapAddr, CASImpl cas)
-
-
Method Details
-
isNew
-
isModified
Description copied from interface:Marker
Test if a FeatureStructure in a CAS represented by thisMarker
existed before the mark was set, and has been modified. isModified(fs) == true implies that isNew(fs) == false.- Specified by:
isModified
in interfaceMarker
- Parameters:
fs
- -- Returns:
- true if a
FeatureStructure
that existed prior to the mark being set has been modified
-
isNew
boolean isNew(int addr) -
isModified
boolean isModified(int addr) -
isValid
public boolean isValid()Description copied from interface:Marker
A Marker becomes invalid when theCAS
from which it was obtained is reset. -
getNextFSId
public int getNextFSId() -
getNextStringHeapAddr
public int getNextStringHeapAddr() -
getNextByteHeapAddr
public int getNextByteHeapAddr() -
getNextShortHeapAddr
public int getNextShortHeapAddr() -
getNextLongHeapAddr
public int getNextLongHeapAddr()
-