public class MarkerImpl extends Object implements Marker
Modifier and Type | Field and Description |
---|---|
protected boolean |
isValid |
protected int |
nextByteHeapAddr |
protected int |
nextFSId |
protected int |
nextLongHeapAddr |
protected int |
nextShortHeapAddr |
protected int |
nextStringHeapAddr |
Modifier and Type | Method and Description |
---|---|
int |
getNextByteHeapAddr() |
int |
getNextFSId() |
int |
getNextLongHeapAddr() |
int |
getNextShortHeapAddr() |
int |
getNextStringHeapAddr() |
boolean |
isModified(FeatureStructure fs)
Test if a FeatureStructure in a CAS represented by this
Marker existed before the mark was set, and has been modified. |
boolean |
isNew(FeatureStructure fs) |
boolean |
isValid()
A Marker becomes invalid when the
CAS from which it was obtained
is reset. |
protected int nextFSId
protected int nextStringHeapAddr
protected int nextByteHeapAddr
protected int nextShortHeapAddr
protected int nextLongHeapAddr
protected boolean isValid
public boolean isNew(FeatureStructure fs)
public boolean isModified(FeatureStructure fs)
Marker
Marker
existed before the mark was set, and has been modified.
isModified(fs) == true implies that isNew(fs) == false.isModified
in interface Marker
fs
- -FeatureStructure
that existed prior to the mark being set has been modifiedpublic boolean isValid()
Marker
CAS
from which it was obtained
is reset.public int getNextFSId()
public int getNextStringHeapAddr()
public int getNextByteHeapAddr()
public int getNextShortHeapAddr()
public int getNextLongHeapAddr()
Copyright © 2006–2021 The Apache Software Foundation. All rights reserved.