|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.uima.cas.impl.MarkerImpl
public class MarkerImpl
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 | |
---|---|
protected boolean |
isValid
|
protected int |
nextByteHeapAddr
|
protected int |
nextFSId
|
protected int |
nextLongHeapAddr
|
protected int |
nextShortHeapAddr
|
protected int |
nextStringHeapAddr
|
Method Summary | |
---|---|
boolean |
isModified(FeatureStructure fs)
Returns true if a FeatureStructure that existed prior to the mark
represented by this Markere is modified. |
boolean |
isNew(FeatureStructure fs)
Returns true if a FeatureStructure was created after the mark represented by this Marker object. |
boolean |
isValid()
Return true if the Marker is still valid. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected int nextFSId
protected int nextStringHeapAddr
protected int nextByteHeapAddr
protected int nextShortHeapAddr
protected int nextLongHeapAddr
protected boolean isValid
Method Detail |
---|
public boolean isNew(FeatureStructure fs)
Marker
FeatureStructure
was created after the mark represented by this Marker
object.
isNew
in interface Marker
public boolean isModified(FeatureStructure fs)
Marker
FeatureStructure
that existed prior to the mark
represented by this Markere
is modified.
isModified
in interface Marker
public boolean isValid()
Marker
CAS
from which it was obtained
is reset.
isValid
in interface Marker
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |