public class CASImpl extends AbstractCas_ImplBase implements CAS, CASMgr, LowLevelCAS, TypeSystemConstants
| Modifier and Type | Class and Description |
|---|---|
static class |
CASImpl.FsChange
Journaling changes for computing delta cas.
|
| Modifier and Type | Field and Description |
|---|---|
static String |
ALWAYS_HOLD_ONTO_FSS |
static int |
DEFAULT_INITIAL_HEAP_SIZE |
static int |
DEFAULT_RESET_HEAP_SIZE |
static String |
DISABLE_PROTECT_INDEXES
Set this JVM property to false for high performance, (no checking); insure you don't have the
report flag (above) turned on - otherwise it will force this to "true".
|
static int |
FALSE |
static boolean |
IS_THROW_EXCEPTION_CORRUPT_INDEX |
static int |
NULL |
static String |
REPORT_FS_UPDATES_CORRUPTS
Define this JVM property to enable checking for invalid updates to features which are used as
keys by any index.
|
static String |
THROW_EXCEPTION_FS_UPDATES_CORRUPTS
The UIMA framework detects (unless disabled, for high performance) updates to indexed FS which
update key values used as keys in indexes.
|
static boolean |
traceCow |
static boolean |
traceFSs |
static int |
TRUE |
DEFAULT_LANGUAGE_NAME, FEATURE_BASE_NAME_BEGIN, FEATURE_BASE_NAME_END, FEATURE_BASE_NAME_FS_ARRAY, FEATURE_BASE_NAME_HEAD, FEATURE_BASE_NAME_INT_ARRAY, FEATURE_BASE_NAME_LANGUAGE, FEATURE_BASE_NAME_SOFA, FEATURE_BASE_NAME_SOFAARRAY, FEATURE_BASE_NAME_SOFAID, FEATURE_BASE_NAME_SOFAMIME, FEATURE_BASE_NAME_SOFANUM, FEATURE_BASE_NAME_SOFASTRING, FEATURE_BASE_NAME_SOFAURI, FEATURE_BASE_NAME_TAIL, FEATURE_FULL_NAME_BEGIN, FEATURE_FULL_NAME_END, FEATURE_FULL_NAME_FLOAT_LIST_HEAD, FEATURE_FULL_NAME_FLOAT_LIST_TAIL, FEATURE_FULL_NAME_FS_LIST_HEAD, FEATURE_FULL_NAME_FS_LIST_TAIL, FEATURE_FULL_NAME_INTEGER_LIST_HEAD, FEATURE_FULL_NAME_INTEGER_LIST_TAIL, FEATURE_FULL_NAME_LANGUAGE, FEATURE_FULL_NAME_SOFA, FEATURE_FULL_NAME_SOFAARRAY, FEATURE_FULL_NAME_SOFAID, FEATURE_FULL_NAME_SOFAMIME, FEATURE_FULL_NAME_SOFANUM, FEATURE_FULL_NAME_SOFASTRING, FEATURE_FULL_NAME_SOFAURI, FEATURE_FULL_NAME_STRING_LIST_HEAD, FEATURE_FULL_NAME_STRING_LIST_TAIL, NAME_DEFAULT_SOFA, NAME_DEFAULT_TEXT_SOFA, NAME_SPACE_UIMA_CAS, NAME_SPACE_UIMA_TCAS, SOFA_INDEX_NAME, STD_ANNOTATION_INDEX, TYPE_NAME_ANNOTATION, TYPE_NAME_ANNOTATION_BASE, TYPE_NAME_ARRAY_BASE, TYPE_NAME_BOOLEAN, TYPE_NAME_BOOLEAN_ARRAY, TYPE_NAME_BYTE, TYPE_NAME_BYTE_ARRAY, TYPE_NAME_DOCUMENT_ANNOTATION, TYPE_NAME_DOUBLE, TYPE_NAME_DOUBLE_ARRAY, TYPE_NAME_EMPTY_FLOAT_LIST, TYPE_NAME_EMPTY_FS_LIST, TYPE_NAME_EMPTY_INTEGER_LIST, TYPE_NAME_EMPTY_STRING_LIST, TYPE_NAME_FLOAT, TYPE_NAME_FLOAT_ARRAY, TYPE_NAME_FLOAT_LIST, TYPE_NAME_FS_ARRAY, TYPE_NAME_FS_LIST, TYPE_NAME_INTEGER, TYPE_NAME_INTEGER_ARRAY, TYPE_NAME_INTEGER_LIST, TYPE_NAME_LIST_BASE, TYPE_NAME_LONG, TYPE_NAME_LONG_ARRAY, TYPE_NAME_NON_EMPTY_FLOAT_LIST, TYPE_NAME_NON_EMPTY_FS_LIST, TYPE_NAME_NON_EMPTY_INTEGER_LIST, TYPE_NAME_NON_EMPTY_STRING_LIST, TYPE_NAME_SHORT, TYPE_NAME_SHORT_ARRAY, TYPE_NAME_SOFA, TYPE_NAME_STRING, TYPE_NAME_STRING_ARRAY, TYPE_NAME_STRING_LIST, TYPE_NAME_TOP, UIMA_CAS_PREFIX, UIMA_TCAS_PREFIXNULL_FS_REF, TYPE_CLASS_BOOLEAN, TYPE_CLASS_BOOLEANARRAY, TYPE_CLASS_BYTE, TYPE_CLASS_BYTEARRAY, TYPE_CLASS_DOUBLE, TYPE_CLASS_DOUBLEARRAY, TYPE_CLASS_FLOAT, TYPE_CLASS_FLOATARRAY, TYPE_CLASS_FS, TYPE_CLASS_FSARRAY, TYPE_CLASS_INT, TYPE_CLASS_INTARRAY, TYPE_CLASS_INVALID, TYPE_CLASS_LONG, TYPE_CLASS_LONGARRAY, TYPE_CLASS_SHORT, TYPE_CLASS_SHORTARRAY, TYPE_CLASS_STRING, TYPE_CLASS_STRINGARRAYannotBaseSofaFeatAdjOffset, annotBaseSofaFeatCode, annotBaseTypeCode, annotTypeCode, arrayBaseTypeCode, beginFeatAdjOffset, beginFeatCode, booleanArrayTypeCode, booleanTypeCode, byteArrayTypeCode, byteTypeCode, docTypeCode, doubleArrayTypeCode, doubleTypeCode, endFeatAdjOffset, endFeatCode, floatArrayTypeCode, floatEListTypeCode, floatListTypeCode, floatNeListTypeCode, floatTypeCode, fsArrayTypeCode, fsEListTypeCode, fsListTypeCode, fsNeListTypeCode, intArrayTypeCode, intEListTypeCode, intListTypeCode, intNeListTypeCode, intTypeCode, langFeatAdjOffset, langFeatCode, longArrayTypeCode, longTypeCode, shortArrayTypeCode, shortTypeCode, sofaArrayFeatAdjOffset, sofaArrayFeatCode, sofaIdFeatAdjOffset, sofaIdFeatCode, sofaMimeFeatAdjOffset, sofaMimeFeatCode, sofaNumFeatAdjOffset, sofaNumFeatCode, sofaStringFeatAdjOffset, sofaStringFeatCode, sofaTypeCode, sofaUriFeatAdjOffset, sofaUriFeatCode, stringArrayTypeCode, stringEListTypeCode, stringListTypeCode, stringNeListTypeCode, stringTypeCode, topTypeCode| Constructor and Description |
|---|
CASImpl() |
CASImpl(CASMgrSerializer ser) |
CASImpl(TypeSystemImpl typeSystem,
int initialHeapSize) |
| Modifier and Type | Method and Description |
|---|---|
void |
addFsToIndexes(FeatureStructure fs)
Add a feature structure to all appropriate indexes in the repository associated with this CAS
View.
|
void |
adjustLastFsV2Size_arrays(int arrayLength) |
void |
adjustLastFsV2size_nonHeapStoredArrays() |
void |
captureLastFsIdForOtherThread()
Call this to capture the current value of fsIdGenerator and make it available to other threads.
|
void |
checkArrayBounds(int fsRef,
int pos) |
void |
checkArrayBounds(int arrayLength,
int pos,
int length) |
void |
checkArrayPreconditions(int len) |
void |
checkTypingConditions(Type domType,
Type ranType,
Feature feat)
Check the range is appropriate for this type/feature.
|
boolean |
clearCasState(CasState state) |
Collection<?> |
collectNonPearVersions(Collection<?> c) |
void |
commitFS(FeatureStructure fs)
Deprecated.
|
TypeSystemImpl |
commitTypeSystem() |
TypeSystemImpl |
commitTypeSystem(boolean skip_loading_user_jcas) |
boolean |
containsCasState(CasState state) |
static CommonArrayFS |
copyArray(TOP srcArray) |
static boolean |
copyFeatureExceptFsRef(TOP fsSrc,
FeatureImpl fiSrc,
TOP fsTgt,
FeatureImpl fiTgt)
Copies a feature from one fs to another FSs may be in different type systems Doesn't copy a
feature ref, but instead returns false.
|
Annotation |
createAnnotation(Type type,
int begin,
int end)
Create a new annotation.
|
TOP |
createArray(TypeImpl array_type,
int arrayLength) |
ArrayFS |
createArrayFS(int length)
Create a new feature structure array.
|
BooleanArrayFS |
createBooleanArrayFS(int length)
Create a new Boolean array.
|
ByteArrayFS |
createByteArrayFS(int length)
Create a new Byte array.
|
<T extends Annotation> |
createDocumentAnnotationNoRemoveNoIndex(int length) |
DoubleArrayFS |
createDoubleArrayFS(int length)
Create a new Double array.
|
FeaturePath |
createFeaturePath()
Create a feature path.
|
FeatureValuePath |
createFeatureValuePath(String featureValuePath)
Create a feature-value path from a string.
|
<T extends FeatureStructure> |
createFilteredIterator(FSIterator<T> it,
FSMatchConstraint cons)
Create an iterator over structures satisfying a given constraint.
|
FloatArrayFS |
createFloatArrayFS(int length)
Create a new int array.
|
<T extends TOP> |
createFS(int id)
This is your link from the low-level API to the high-level API.
|
<T extends FeatureStructure> |
createFS(Type type)
Create the appropriate Feature Structure Java instance - from whatever the generator for this
type specifies.
|
IntArrayFS |
createIntArrayFS(int length)
Create a new int array.
|
LongArrayFS |
createLongArrayFS(int length)
Create a new Long array.
|
Marker |
createMarker()
The current implementation only supports 1 marker call per CAS.
|
ShortArrayFS |
createShortArrayFS(int length)
Create a new Short array.
|
SofaFS |
createSofa(SofaID sofaID,
String mimeType)
Deprecated.
|
StringArrayFS |
createStringArrayFS(int length)
Create a new String array.
|
int |
createTempArray(int type,
int len)
(for backwards compatibility with V2 CASImpl) Create a temporary (i.e., per document) array FS
on the heap.
|
CAS |
createView(String aSofaID)
Create a view and its underlying Sofa (subject of analysis).
|
void |
deltaMergesComplete()
A space-freeing optimization for use cases where (multiple) delta CASes are being deserialized
into this CAS and merged.
|
static long |
double2long(double d) |
CommonArrayFS |
emptyArray(Type type) |
BooleanArray |
emptyBooleanArray() |
ByteArray |
emptyByteArray() |
DoubleArray |
emptyDoubleArray() |
FloatArray |
emptyFloatArray() |
EmptyFloatList |
emptyFloatList() |
<T extends FeatureStructure> |
emptyFSArray() |
<T extends FeatureStructure> |
emptyFSArray(Type type) |
<T extends TOP> |
emptyFSList() |
IntegerArray |
emptyIntegerArray() |
EmptyIntegerList |
emptyIntegerList() |
EmptyList |
emptyList(int rangeCode) |
EmptyList |
emptyListFromTypeCode(int typeCode)
Get an empty list from the type code of a list
|
LongArray |
emptyLongArray() |
ShortArray |
emptyShortArray() |
StringArray |
emptyStringArray() |
EmptyStringList |
emptyStringList() |
void |
enableReset(boolean flag)
Enable/disable resetting the CAS with
CAS.reset(). |
static int |
float2int(float f) |
void |
flush()
Deprecated.
Use
reset()instead. |
void |
forAllViews(Consumer<CASImpl> processViews)
iterate over all views in view order (by view number)
|
<T extends FeatureStructure> |
fs2listIterator(FSIterator<T> it)
Wrap a standard Java
ListIterator around an FSListIterator. |
<T extends AnnotationFS> |
getAnnotationIndex()
The generic spec T extends AnnotationFS (rather than AnnotationFS) allows the method JCasImpl
getAnnotationIndex to return Annotation instead of AnnotationFS
|
<T extends AnnotationFS> |
getAnnotationIndex(Type type)
Get the standard annotation index restricted to a specific annotation type.
|
Type |
getAnnotationType()
Get the type object for the annotation type.
|
int |
getArraySize(CommonArrayFS fs) |
CASImpl |
getBaseCAS() |
Feature |
getBeginFeature()
Get the feature object for the annotation begin feature.
|
BinaryCasSerDes |
getBinaryCasSerDes() |
CAS |
getCAS()
Return a non-admin version of the CAS.
|
String |
getCasId() |
int |
getCasResets() |
ConstraintFactory |
getConstraintFactory()
Get a constraint factory.
|
MarkerImpl |
getCurrentMark() |
CAS |
getCurrentView()
Get the Cas view that the current component should use.
|
static ThreadLocal<Boolean> |
getDefaultV2IdRefs() |
<T extends AnnotationFS> |
getDocumentAnnotation()
Generic issue: The returned document annotation could be either an instance of
DocumentAnnotation or a subclass of it, or an instance of Annotation - the Java cover class
used for annotations when JCas is not being used.
|
<T extends AnnotationFS> |
getDocumentAnnotationNoCreate() |
String |
getDocumentLanguage()
Gets the language code for this document from the language feature of the special instance of
the DocumentationAnnotation associated with this CAS.
|
String |
getDocumentText()
Get the document text.
|
Feature |
getEndFeature()
Get the feature object for the annotation end feature.
|
float |
getFloatArrayValue(FloatArray array,
int i) |
FSClassRegistry |
getFSClassRegistry() |
<T extends TOP> |
getFsFromId_checked(int fsRef) |
<T extends TOP> |
getFsFromId(int id) |
FSIndexRepository |
getIndexRepository()
Get the index repository.
|
FSIndexRepositoryMgr |
getIndexRepositoryMgr() |
int |
getInitialHeapSize() |
int |
getIntArrayValue(IntegerArray array,
int i) |
JCas |
getJCas()
Get the JCas view for this CAS view
|
JCas |
getJCas(SofaFS aSofa)
Create a JCas view for a Sofa.
|
JCas |
getJCas(SofaID aSofaID)
Deprecated.
|
ClassLoader |
getJCasClassLoader()
Gets the ClassLoader that should be used by the JCas to load the generated FS cover classes for
this CAS.
|
JCasImpl |
getJCasImpl()
Get the JCasImpl view for this CAS view
|
int |
getLastUsedFsId() |
LowLevelCAS |
getLowLevelCAS()
Get an instance of the low-level CAS.
|
int |
getNextFsId(TOP fs) |
int |
getNumberOfSofas() |
int |
getNumberOfViews()
Creates the initial view (without a sofa) if not present
|
FeatureStructure |
getRefArrayValue(FSArray array,
int i) |
Sofa |
getSofa()
Get the Sofa feature structure associated with this CAS view.
|
SofaFS |
getSofa(SofaID sofaID)
Deprecated.
|
CASImpl |
getSofaCasView(AnnotationBase fs) |
FeatureStructure |
getSofaDataArray()
Get the Sofa data array.
|
InputStream |
getSofaDataStream()
Get the Sofa data as a byte stream.
|
InputStream |
getSofaDataStream(SofaFS aSofa) |
String |
getSofaDataString()
Get the Sofa Data String (a.k.a.
|
String |
getSofaDataURI()
Get the Sofa data array.
|
<T extends SofaFS> |
getSofaIterator()
Get iterator for all SofaFS in the CAS.
|
String |
getSofaMimeType()
Get the mime type of the Sofa data being analyzed.
|
Sofa |
getSofaRef() |
String |
getStringArrayValue(StringArray array,
int i) |
TypeSystem |
getTypeSystem()
Return the type system of this CAS instance.
|
TypeSystemImpl |
getTypeSystemImpl() |
TypeSystemMgr |
getTypeSystemMgr()
Return a writable version of the type system.
|
CAS |
getView(int sofaNum) |
CASImpl |
getView(SofaFS aSofa)
Get the view for a Sofa (subject of analysis).
|
CAS |
getView(String aSofaID)
Get the view for a Sofa (subject of analysis).
|
Iterator<CASImpl> |
getViewImplIterator()
excludes initial view if its sofa is not valid
|
<T extends CAS> |
getViewIterator()
Get iterator over all views in this CAS.
|
Iterator<CAS> |
getViewIterator(String localViewNamePrefix)
Get iterator over all views with the given name prefix.
|
String |
getViewName()
Get the view name.
|
void |
initCASIndexes()
Install the standard built-in indexes into the base CAS
|
static float |
int2float(int i) |
boolean |
is_ll_enableV2IdRefs() |
boolean |
isAbstractArrayType(Type type) |
boolean |
isAnnotationType(Type t) |
boolean |
isArrayType(Type type) |
boolean |
isBackwardCompatibleCas() |
boolean |
isBaseCas() |
boolean |
isBooleanArrayType(Type type) |
boolean |
isBooleanType(Type type) |
boolean |
isByteArrayType(Type type) |
boolean |
isByteType(Type type) |
boolean |
isCasLocked() |
boolean |
isDoubleArrayType(Type type) |
boolean |
isDoubleType(Type type) |
boolean |
isFloatArrayType(Type type) |
boolean |
isFloatType(Type type) |
boolean |
isFSArrayType(Type type) |
boolean |
isId2Fs() |
boolean |
isInCAS(FeatureStructure fs) |
boolean |
isIntArrayType(Type type) |
boolean |
isIntType(Type type) |
boolean |
isLogging() |
boolean |
isLoggingNeeded(FeatureStructureImplC fs) |
boolean |
isLongArrayType(Type type) |
boolean |
isLongType(Type type) |
boolean |
isPrimitiveArrayType(Type type) |
static boolean |
isSameCAS(CAS c1,
CAS c2) |
boolean |
isShortArrayType(Type type) |
boolean |
isShortType(Type type) |
boolean |
isStringArrayType(Type type) |
boolean |
isStringType(Type type) |
boolean |
isSubtypeOfAnnotationBaseType(int t) |
int |
lastV2IdIncr() |
int |
ll_copyCharBufferValue(int fsRef,
int featureCode,
char[] buffer,
int start) |
int |
ll_createAnnotation(int typeCode,
int begin,
int end) |
int |
ll_createArray(int typeCode,
int arrayLength)
Create a new array.
|
int |
ll_createArray(int typeCode,
int arrayLength,
boolean doChecks)
Create a new array.
|
int |
ll_createBooleanArray(int arrayLength) |
int |
ll_createByteArray(int arrayLength) |
int |
ll_createDocumentAnnotation(int length) |
int |
ll_createDocumentAnnotationNoIndex(int begin,
int end) |
int |
ll_createDoubleArray(int arrayLength) |
int |
ll_createFS(int typeCode)
Create a new FS on the heap.
|
int |
ll_createFS(int typeCode,
boolean doCheck)
Create a new FS on the heap.
|
int |
ll_createLongArray(int arrayLength) |
int |
ll_createShortArray(int arrayLength) |
AutoCloseableNoException |
ll_enableV2IdRefs(boolean enable)
Enables or disables the id_to_fs_map mode.
|
int |
ll_getArraySize(int id)
Get the size of an array.
|
boolean |
ll_getBooleanArrayValue(int fsRef,
int position) |
boolean |
ll_getBooleanArrayValue(int fsRef,
int position,
boolean doTypeChecks) |
boolean |
ll_getBooleanValue(int fsRef,
int featureCode) |
boolean |
ll_getBooleanValue(int fsRef,
int featureCode,
boolean doTypeChecks) |
byte |
ll_getByteArrayValue(int fsRef,
int position) |
byte |
ll_getByteArrayValue(int fsRef,
int position,
boolean doTypeChecks) |
byte |
ll_getByteValue(int fsRef,
int featureCode) |
byte |
ll_getByteValue(int fsRef,
int featureCode,
boolean doTypeChecks) |
int |
ll_getCharBufferValueSize(int fsRef,
int featureCode) |
int |
ll_getDocumentAnnotation() |
double |
ll_getDoubleArrayValue(int fsRef,
int position) |
double |
ll_getDoubleArrayValue(int fsRef,
int position,
boolean doTypeChecks) |
double |
ll_getDoubleValue(int fsRef,
int featureCode) |
double |
ll_getDoubleValue(int fsRef,
int featureCode,
boolean doTypeChecks) |
float |
ll_getFloatArrayValue(int fsRef,
int position)
Get the value of a float array at a certain position.
|
float |
ll_getFloatArrayValue(int fsRef,
int position,
boolean doTypeChecks)
Get the value of a float array at a certain position.
|
float |
ll_getFloatValue(int fsRef,
int featureCode)
Get the value of a float valued feature.
|
float |
ll_getFloatValue(int fsRef,
int featureCode,
boolean doTypeChecks)
Get the value of a float valued feature.
|
<T extends TOP> |
ll_getFSForRef(int id)
Return a FS object that corresponds to a low-level reference.
|
int |
ll_getFSRef(FeatureStructure fs)
Safety - any time the low level API to a FS is requested, hold on to that FS until CAS reset to
mimic how v2 works.
|
int |
ll_getFSRefType(int fsRef)
Get the type code for a FS reference.
|
int |
ll_getFSRefType(int fsRef,
boolean doChecks)
Get the type code for a FS reference.
|
LowLevelIndexRepository |
ll_getIndexRepository()
Get the low-level version of the index repository.
|
int |
ll_getIntArrayValue(int fsRef,
int position)
Get the value of an array at a certain position.
|
int |
ll_getIntArrayValue(int fsRef,
int position,
boolean doTypeChecks)
Get the value of an integer array at a certain position.
|
int |
ll_getIntValue(int fsRef,
int featureCode)
Handle some unusual backwards compatibility cases
featureCode = 0 - implies getting the type code
feature range is int - normal
feature range is a fs reference, return the id
feature range is a string: add the string if not already present to the string heap, return the int handle.
|
int |
ll_getIntValue(int fsRef,
int featureCode,
boolean doTypeChecks)
Get the value of an integer valued feature.
|
long |
ll_getLongArrayValue(int fsRef,
int position) |
long |
ll_getLongArrayValue(int fsRef,
int position,
boolean doTypeChecks) |
long |
ll_getLongValue(int fsRef,
int featureCode) |
long |
ll_getLongValue(int fsRef,
int featureCode,
boolean doTypeChecks) |
int |
ll_getRefArrayValue(int fsRef,
int position)
Get the value of a FS reference array at a certain position.
|
int |
ll_getRefArrayValue(int fsRef,
int position,
boolean doTypeChecks)
Get the value of a FS reference array at a certain position.
|
int |
ll_getRefValue(int fsRef,
int featureCode)
Get the value of a FS reference valued feature.
|
int |
ll_getRefValue(int fsRef,
int featureCode,
boolean doTypeChecks)
Get the value of a FS reference valued feature.
|
short |
ll_getShortArrayValue(int fsRef,
int position) |
short |
ll_getShortArrayValue(int fsRef,
int position,
boolean doTypeChecks) |
short |
ll_getShortValue(int fsRef,
int featureCode) |
short |
ll_getShortValue(int fsRef,
int featureCode,
boolean doTypeChecks) |
int |
ll_getSofa() |
CASImpl |
ll_getSofaCasView(int id) |
String |
ll_getSofaDataString(int sofaAddr) |
String |
ll_getSofaID(int sofaRef) |
int |
ll_getSofaNum(int sofaRef) |
String |
ll_getStringArrayValue(int fsRef,
int position)
Get the value of a string array at a certain position.
|
String |
ll_getStringArrayValue(int fsRef,
int position,
boolean doTypeChecks)
Get the value of a string array at a certain position.
|
String |
ll_getStringValue(int fsRef,
int featureCode)
Get the value of a string valued feature.
|
String |
ll_getStringValue(int fsRef,
int featureCode,
boolean doTypeChecks)
Get the value of a string valued feature.
|
int |
ll_getTypeClass(int typeCode)
Determine the type class of a type.
|
LowLevelTypeSystem |
ll_getTypeSystem()
Get the low-level version of the type system object.
|
boolean |
ll_isRefType(int typeCode)
Checks if the type code is that of a reference type (anything that's not a basic type,
currently Integer, String and Float).
|
void |
ll_setBooleanArrayValue(int fsRef,
int position,
boolean b) |
void |
ll_setBooleanArrayValue(int fsRef,
int position,
boolean value,
boolean doTypeChecks) |
void |
ll_setBooleanValue(int fsRef,
int featureCode,
boolean value) |
void |
ll_setBooleanValue(int fsRef,
int featureCode,
boolean value,
boolean doTypeChecks) |
void |
ll_setByteArrayValue(int fsRef,
int position,
byte value) |
void |
ll_setByteArrayValue(int fsRef,
int position,
byte value,
boolean doTypeChecks) |
void |
ll_setByteValue(int fsRef,
int featureCode,
byte value) |
void |
ll_setByteValue(int fsRef,
int featureCode,
byte value,
boolean doTypeChecks) |
void |
ll_setCharBufferValue(int fsRef,
int featureCode,
char[] buffer,
int start,
int length) |
void |
ll_setCharBufferValue(int fsRef,
int featureCode,
char[] buffer,
int start,
int length,
boolean doTypeChecks) |
void |
ll_setDoubleArrayValue(int fsRef,
int position,
double d) |
void |
ll_setDoubleArrayValue(int fsRef,
int position,
double value,
boolean doTypeChecks) |
void |
ll_setDoubleValue(int fsRef,
int featureCode,
double value) |
void |
ll_setDoubleValue(int fsRef,
int featureCode,
double value,
boolean doTypeChecks) |
void |
ll_setFloatArrayValue(int fsRef,
int position,
float value)
Set the value of an integer array at a certain position.
|
void |
ll_setFloatArrayValue(int fsRef,
int position,
float value,
boolean doTypeChecks)
Set the value of an integer array at a certain position.
|
void |
ll_setFloatValue(int fsRef,
int featureCode,
float value)
Set the value of a float feature.
|
void |
ll_setFloatValue(int fsRef,
int featureCode,
float value,
boolean doTypeChecks)
Set the value of a float feature.
|
void |
ll_setIntArrayValue(int fsRef,
int position,
int value)
Set the value of an integer array at a certain position.
|
void |
ll_setIntArrayValue(int fsRef,
int position,
int value,
boolean doTypeChecks)
Set the value of an integer array at a certain position.
|
void |
ll_setIntValue(int fsRef,
int featureCode,
int value)
Special considerations:
Interface with corruption checking
For backwards compatibility:
handle cases where feature is:
int - normal
0 - change type code
a ref: treat int as FS "addr"
not an int: handle like v2 where reasonable
|
void |
ll_setIntValue(int fsRef,
int featureCode,
int value,
boolean doTypeChecks)
Set the value of an integer feature.
|
void |
ll_setLongArrayValue(int fsRef,
int position,
long value) |
void |
ll_setLongArrayValue(int fsRef,
int position,
long value,
boolean doTypeChecks) |
void |
ll_setLongValue(int fsRef,
int featureCode,
long value) |
void |
ll_setLongValue(int fsRef,
int featureCode,
long value,
boolean doTypeChecks) |
void |
ll_setRefArrayValue(int fsRef,
int position,
int value)
Set the value of an integer array at a certain position.
|
void |
ll_setRefArrayValue(int fsRef,
int position,
int value,
boolean doTypeChecks)
Set the value of an integer array at a certain position.
|
void |
ll_setRefValue(int fsRef,
int featureCode,
int value)
Set the value of a FS reference feature.
|
void |
ll_setRefValue(int fsRef,
int featureCode,
int value,
boolean doTypeChecks)
Set the value of a FS reference feature.
|
void |
ll_setShortArrayValue(int fsRef,
int position,
short value) |
void |
ll_setShortArrayValue(int fsRef,
int position,
short value,
boolean doTypeChecks) |
void |
ll_setShortValue(int fsRef,
int featureCode,
short value) |
void |
ll_setShortValue(int fsRef,
int featureCode,
short value,
boolean doTypeChecks) |
void |
ll_setStringArrayValue(int fsRef,
int position,
String value)
Set the value of an integer array at a certain position.
|
void |
ll_setStringArrayValue(int fsRef,
int position,
String value,
boolean doTypeChecks)
Set the value of an integer array at a certain position.
|
void |
ll_setStringValue(int fsRef,
int featureCode,
String value)
Set the value of a string feature.
|
void |
ll_setStringValue(int fsRef,
int featureCode,
String value,
boolean doTypeChecks)
Set the value of a string feature.
|
static double |
long2double(long l) |
<T> Spliterator<T> |
makePearAware(Spliterator<T> baseSi) |
void |
maybeAddback(TOP fs)
Only called if there was something removed that needs to be added back
skip the addback (to defer it until later) if:
- running in block mode (you can tell this if svd.fssTobeAddedback.size() > 0) or
if running in block mode, the add back is delayed until the end of the block
|
void |
maybeLogArrayUpdate(FeatureStructureImplC fs,
FeatureImpl feat,
int i) |
void |
maybeLogArrayUpdates(FeatureStructureImplC fs,
int startingIndex,
int length) |
void |
maybeLogArrayUpdates(FeatureStructureImplC fs,
org.apache.uima.internal.util.PositiveIntSet indexesPlus1) |
void |
maybeLogUpdate(FeatureStructureImplC fs,
FeatureImpl feat) |
void |
maybeLogUpdate(FeatureStructureImplC fs,
int featCode) |
int |
peekNextFsId() |
AutoCloseableNoException |
protectIndexes()
protectIndexes
Within the scope of protectIndexes, feature updates are checked, and if found to be a key, and
the FS is in a corruptible index, then the FS is removed from the indexes (in all necessary
views) (perhaps multiple times if the FS was added to the indexes multiple times), and this
removal is recorded on an new instance of FSsTobeReindexed appended to fssTobeAddedback.
|
void |
protectIndexes(Runnable r)
Runs the code in the runnable inside a protection block, where any modifications to features
done while in this block will be done in a way to protect any indexes which otherwise might
become corrupted by the update action; the protection is achieved by temporarily removing the
FS (if it is in the indexes), before the update happens.
|
void |
reinit(CASCompleteSerializer casCompSer)
Deserializer for CASCompleteSerializer instances - includes type system and index definitions
Never delta
|
void |
reinit(CASSerializer ser)
Deserializer for Java-object serialized instance of CASSerializer.
|
SerialFormat |
reinit(InputStream istream)
---------------------------------------------------------------------
see Blob Format in CASSerializer
This reads in and deserializes CAS data from a stream.
|
void |
release()
Default implementation that returns this CAS to its CasManager by calling
CasOwner.releaseCas(AbstractCas). |
void |
removeFsFromIndexes(FeatureStructure fs)
Remove a feature structure from all indexes in the repository associated with this CAS View.
|
void |
reset()
Reset the CAS, emptying it of all content.
|
void |
resetNoQuestions() |
void |
restoreClassLoaderUnlockCas() |
void |
set_deserialized_doc_annot_not_indexed(Annotation doc_annot) |
void |
setCAS(CAS cas)
Deprecated.
|
boolean |
setCasState(CasState state) |
boolean |
setCasState(CasState state,
Thread thread) |
void |
setCurrentComponentInfo(ComponentInfo info)
Informs the CAS of relevant information about the component that is currently processing it.
|
void |
setDocumentLanguage(String languageCode)
Sets the language for this document.
|
void |
setDocumentText(String text)
Set the document text.
|
static void |
setFeatureValueFromString(FeatureStructureImplC fs,
FeatureImpl feat,
String s)
Supports setting slots to "0" for null values
|
static void |
setFeatureValueFromStringNoDocAnnotUpdate(FeatureStructureImplC fs,
FeatureImpl feat,
String s)
Internal use, for cases where deserializing - special case setting sofString to skip updating
the document annotation
|
static void |
setFeatureValueMaybeSofa(TOP fs,
FeatureImpl feat,
TOP value)
internal use - special setter for setting feature values, including special handling if the
feature is for the sofaArray, when deserializing
|
void |
setId2FSsMaybeUnconditionally(FeatureStructure... fss)
Test case use
|
void |
setJCasClassLoader(ClassLoader classLoader)
Sets the ClassLoader that should be used by the JCas to load the generated FS cover classes for
this CAS.
|
void |
setLongValue(FeatureStructureImplC fsIn,
FeatureImpl feat,
long v)
version for longs, uses two slots Only called from FeatureStructureImplC after determining
there is no local field to use Is here because of 3 calls to things in this class
|
void |
setOwner(CasOwner aCasOwner)
Provides this CAS with a handle to the CASOwner that owns it.
|
void |
setSofaDataArray(FeatureStructure array,
String mime)
Set the Sofa data as an ArrayFS.
|
void |
setSofaDataString(String text,
String mime)
Set the document text.
|
void |
setSofaDataURI(String uri,
String mime)
Set the Sofa data as a URI.
|
void |
setWithCheckAndJournal(TOP fs,
int featCode,
Runnable setter) |
void |
setWithJournal(FeatureStructureImplC fs,
FeatureImpl fi,
Runnable setter)
This method called by setters in JCas gen'd classes when the setter must check for journaling
|
int |
size()
Estimate the memory consumption of this CAS instance (in bytes).
|
void |
swapInPearVersion(Object[] a) |
void |
switchClassLoader(ClassLoader newClassLoader,
boolean wasLocked) |
void |
switchClassLoaderLockCas(Object userCode) |
void |
switchClassLoaderLockCasCL(ClassLoader newClassLoader) |
String |
toString() |
void |
traceFSCreate(FeatureStructureImplC fs) |
StringBuilder |
traceFSflush() |
void |
updateDocumentAnnotation()
updates the document annotation (only if the sofa's local string data != null)
setting the end feature to be the length of the sofa string, if any.
|
void |
validateArraySize(int length) |
List<TOP> |
walkReachablePlusFSsSorted(Consumer<TOP> action_filtered,
MarkerImpl mark,
Predicate<TOP> includeFilter,
CasTypeSystemMapper typeMapper)
find all of the FSs via the indexes plus what's reachable.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitemptyArray, emptyList, getAllIndexedFS, getAllIndexedFS, getAnnotationIndex, getCasType, getIndexedFSs, getIndexedFSs, getIndexedFSs, select, select, select, select, selectll_defaultV2IdRefs, ll_defaultV2IdRefs, ll_enableV2IdRefspublic static final boolean traceFSs
public static final boolean traceCow
public static final int NULL
public static final int TRUE
public static final int FALSE
public static final int DEFAULT_INITIAL_HEAP_SIZE
public static final int DEFAULT_RESET_HEAP_SIZE
public static final String THROW_EXCEPTION_FS_UPDATES_CORRUPTS
Users can use the protectIndexes() methods to explicitly control this remove - add back cycle, for instance to "batch" together several updates to multiple features in a FS.
Some build processes may want to FAIL if any unprotected updates of this kind occur, instead of having the framework silently recover them. This is enabled by having the framework throw an exception; this is controlled by this global JVM property, which, if defined, causes the framework to throw an exception rather than recover.
public static boolean IS_THROW_EXCEPTION_CORRUPT_INDEX
public static final String REPORT_FS_UPDATES_CORRUPTS
public static final String DISABLE_PROTECT_INDEXES
public static final String ALWAYS_HOLD_ONTO_FSS
public CASImpl(TypeSystemImpl typeSystem, int initialHeapSize)
public CASImpl()
public CASImpl(CASMgrSerializer ser)
public static ThreadLocal<Boolean> getDefaultV2IdRefs()
public boolean setCasState(CasState state)
state - to add to the setpublic boolean setCasState(CasState state, Thread thread)
state - to add to the setthread - null or the thread to permit access topublic boolean containsCasState(CasState state)
state - to see if it is among the items in this setpublic boolean clearCasState(CasState state)
state - to be removedpublic boolean isCasLocked()
public boolean isId2Fs()
public void enableReset(boolean flag)
CASMgrCAS.reset().enableReset in interface CASMgrflag - true to enable resetpublic final TypeSystem getTypeSystem()
CASgetTypeSystem in interface CASnull if none is available.public final TypeSystemImpl getTypeSystemImpl()
public ConstraintFactory getConstraintFactory()
CASFSMatchConstraints.getConstraintFactory in interface CASpublic <T extends FeatureStructure> T createFS(Type type)
public ArrayFS createArrayFS(int length)
CAScreateArrayFS in interface CASlength - The length of the array.public IntArrayFS createIntArrayFS(int length)
CAScreateIntArrayFS in interface CASlength - The length of the array.public FloatArrayFS createFloatArrayFS(int length)
CAScreateFloatArrayFS in interface CASlength - The length of the array.public StringArrayFS createStringArrayFS(int length)
CAScreateStringArrayFS in interface CASlength - The length of the array.public boolean isBackwardCompatibleCas()
@Deprecated public SofaFS createSofa(SofaID sofaID, String mimeType)
CAScreateSofa in interface CASsofaID - -mimeType - -@Deprecated public SofaFS getSofa(SofaID sofaID)
CASpublic int ll_getSofaNum(int sofaRef)
public String ll_getSofaID(int sofaRef)
public String ll_getSofaDataString(int sofaAddr)
public CASImpl getBaseCAS()
public <T extends SofaFS> FSIterator<T> getSofaIterator()
CASgetSofaIterator in interface CAST - generic type of sofa iteratorpublic Sofa getSofaRef()
public InputStream getSofaDataStream(SofaFS aSofa)
public <T extends FeatureStructure> FSIterator<T> createFilteredIterator(FSIterator<T> it, FSMatchConstraint cons)
CASConstraintFactory and related classes.createFilteredIterator in interface CAST - - the type of the Feature Structureit - The input iterator.cons - The constraint specifying what structures should be returned.public TypeSystemImpl commitTypeSystem(boolean skip_loading_user_jcas)
public TypeSystemImpl commitTypeSystem()
public FSIndexRepositoryMgr getIndexRepositoryMgr()
getIndexRepositoryMgr in interface CASMgr@Deprecated public void commitFS(FeatureStructure fs)
public FeaturePath createFeaturePath()
CASFSMatchConstraints.createFeaturePath in interface CASpublic TypeSystemMgr getTypeSystemMgr()
CASMgrgetTypeSystemMgr in interface CASMgrCASMgr.getTypeSystemMgr()public void reset()
CASpublic void resetNoQuestions()
@Deprecated public void flush()
reset()instead.CASMgrpublic FSIndexRepository getIndexRepository()
CASgetIndexRepository in interface CASnull if none is available.public <T extends FeatureStructure> ListIterator<T> fs2listIterator(FSIterator<T> it)
CASListIterator around an FSListIterator. Use
if you feel more comfortable with java style iterators.fs2listIterator in interface CAST - The type of FeatureStructureit - The FSListIterator to be wrapped.ListIterator.CAS.fs2listIterator(FSIterator)public CAS getCAS()
CASMgrgetCAS in interface CASMgrCASMgr.getCAS()public FSClassRegistry getFSClassRegistry()
public <T extends TOP> T createFS(int id)
T - The Java class associated with this feature structureid - The id of the feature structure to be created.public int getArraySize(CommonArrayFS fs)
public int ll_getArraySize(int id)
LowLevelCASll_getArraySize in interface LowLevelCASid - The array reference.public final void setWithCheckAndJournal(TOP fs, int featCode, Runnable setter)
public final void setWithJournal(FeatureStructureImplC fs, FeatureImpl fi, Runnable setter)
fs - -fi - -setter - -public final boolean isLoggingNeeded(FeatureStructureImplC fs)
public final void maybeLogArrayUpdate(FeatureStructureImplC fs, FeatureImpl feat, int i)
fs - the Feature Structure being updatedfeat - the feature of fs being updated, or null if fs is a primitive arrayi - the index being updatedpublic final void maybeLogArrayUpdates(FeatureStructureImplC fs, org.apache.uima.internal.util.PositiveIntSet indexesPlus1)
fs - the Feature Structure being updatedindexesPlus1 - - a set of indexes (plus 1) that have been updatepublic final void maybeLogArrayUpdates(FeatureStructureImplC fs, int startingIndex, int length)
fs - a primitive array FSstartingIndex - -length - number of consequtive itemspublic final void maybeLogUpdate(FeatureStructureImplC fs, FeatureImpl feat)
public final void maybeLogUpdate(FeatureStructureImplC fs, int featCode)
public final boolean isLogging()
public void setLongValue(FeatureStructureImplC fsIn, FeatureImpl feat, long v)
fsIn - the feature structurefeat - the feature to setv - -public static void setFeatureValueMaybeSofa(TOP fs, FeatureImpl feat, TOP value)
fs - -feat - -value - -public static void setFeatureValueFromStringNoDocAnnotUpdate(FeatureStructureImplC fs, FeatureImpl feat, String s)
fs - -feat - -s - -public static void setFeatureValueFromString(FeatureStructureImplC fs, FeatureImpl feat, String s)
fs - The feature structure to updatefeat - the feature to update-s - the string representation of the value, could be nullpublic static final float int2float(int i)
public static final int float2int(float f)
public static final double long2double(long l)
public static final long double2long(double d)
public final boolean isStringType(Type type)
public final boolean isAbstractArrayType(Type type)
public final boolean isArrayType(Type type)
public final boolean isPrimitiveArrayType(Type type)
public final boolean isIntArrayType(Type type)
public final boolean isFloatArrayType(Type type)
public final boolean isStringArrayType(Type type)
public final boolean isBooleanArrayType(Type type)
public final boolean isByteArrayType(Type type)
public final boolean isShortArrayType(Type type)
public final boolean isLongArrayType(Type type)
public final boolean isDoubleArrayType(Type type)
public final boolean isFSArrayType(Type type)
public final boolean isIntType(Type type)
public final boolean isFloatType(Type type)
public final boolean isByteType(Type type)
public final boolean isBooleanType(Type type)
public final boolean isShortType(Type type)
public final boolean isLongType(Type type)
public final boolean isDoubleType(Type type)
public void initCASIndexes()
throws CASException
CASMgrinitCASIndexes in interface CASMgrCASException - if an error occursCASMgr.initCASIndexes()public CAS getView(int sofaNum)
public CAS getCurrentView()
CASgetCurrentView in interface CASpublic JCas getJCas()
CASpublic JCasImpl getJCasImpl()
CASgetJCasImpl in interface CASpublic JCas getJCas(SofaFS aSofa) throws CASException
CASgetJCas in interface CASaSofa - a Sofa feature structure in this CAS.CASException - -@Deprecated public JCas getJCas(SofaID aSofaID) throws CASException
CASgetView(aSofaID).getJCas().getJCas in interface CASaSofaID - the ID of a Sofa defined in this CASaSofaID.CASException - if no Sofa with the given ID exists in this CASpublic CAS createView(String aSofaID)
CAS
This method creates the underlying Sofa feature structure, but does not set the Sofa data.
Setting ths Sofa data must be done by calling
CAS.setSofaDataArray(FeatureStructure, String), CAS.setSofaDataString(String, String)
or CAS.setSofaDataURI(String, String) on the CAS view returned by this method.
createView in interface CASaSofaID - the local name, before any sofa name mapping is done, for this view (note: this is the
same as the associated Sofa name).public CAS getView(String aSofaID)
CASpublic CASImpl getView(SofaFS aSofa)
CASpublic LowLevelTypeSystem ll_getTypeSystem()
LowLevelCASll_getTypeSystem in interface LowLevelCASpublic LowLevelIndexRepository ll_getIndexRepository()
LowLevelCASll_getIndexRepository in interface LowLevelCASpublic final void checkTypingConditions(Type domType, Type ranType, Feature feat)
domType - domain typeranType - range typefeat - featurepublic final <T extends TOP> T getFsFromId_checked(int fsRef)
public final boolean ll_isRefType(int typeCode)
LowLevelCASll_isRefType in interface LowLevelCAStypeCode - The type code to check.true iff typeCode is the type code of a reference type.public final int ll_getTypeClass(int typeCode)
LowLevelCASTYPE_CLASS_INVALID -- Not a valid type code.TYPE_CLASS_INT -- Integer type.TYPE_CLASS_FLOAT -- Float type.TYPE_CLASS_STRING -- String type.TYPE_CLASS_BOOLEAN -- Boolean type.TYPE_CLASS_BYTE -- Byte type.TYPE_CLASS_SHORT -- Short type.TYPE_CLASS_LONG -- Long type.TYPE_CLASS_DOUBLE -- Double type.TYPE_CLASS_INTARRAY -- Integer array.TYPE_CLASS_FLOATARRAY -- Float array.TYPE_CLASS_STRINGARRAY -- String array.TYPE_CLASS_BOOLEANARRAY -- Boolean array.TYPE_CLASS_BYTEARRAY -- Byte array.TYPE_CLASS_SHORTARRAY -- Short array.TYPE_CLASS_LONGARRAY -- Long array.TYPE_CLASS_DOUBLEARRAY -- Double array.TYPE_CLASS_FSARRAY -- FS array.TYPE_CLASS_FS -- FS type, i.e., all other types, including all user-defined
types.ll_getTypeClass in interface LowLevelCAStypeCode - The type code.TYPE_CLASS_INVALID if the type code
argument does not represent a valid type code.public final int ll_createFS(int typeCode)
LowLevelCASll_createFS in interface LowLevelCAStypeCode - The low-level code of the type of the FS that should be created. If the
typeCode is not a valid type code, the results of this call are
undefined.public final int ll_createFS(int typeCode,
boolean doCheck)
LowLevelCASll_createFS in interface LowLevelCAStypeCode - The low-level code of the type of the FS that should be created. If the
typeCode is not a valid type code and the type check flag is not set, the
results of this call are undefined.doCheck - -public int ll_createArray(int typeCode,
int arrayLength)
LowLevelCASll_createArray in interface LowLevelCAStypeCode - The type code of the array type. If this is not a valid array type code, the behavior
of this call is undefined. Only works for arrays where a value is kept in the main
heap (use other ll_createXxxArray for boolean, byte, short, long, and double)arrayLength - The length of the array to be created.public int createTempArray(int type,
int len)
type - The type code of the array to be created.len - The length of the array to be created.ArrayIndexOutOfBoundsException - If type is not a type.public int ll_createByteArray(int arrayLength)
ll_createByteArray in interface LowLevelCASarrayLength - -public int ll_createBooleanArray(int arrayLength)
ll_createBooleanArray in interface LowLevelCASarrayLength - -public int ll_createShortArray(int arrayLength)
ll_createShortArray in interface LowLevelCASarrayLength - -public int ll_createLongArray(int arrayLength)
ll_createLongArray in interface LowLevelCASarrayLength - -public int ll_createDoubleArray(int arrayLength)
ll_createDoubleArray in interface LowLevelCASarrayLength - -public int ll_createArray(int typeCode,
int arrayLength,
boolean doChecks)
LowLevelCASll_createArray in interface LowLevelCASarrayLength - -typeCode - The type code of the array to be created.doChecks - Switch to turn on various sanity checks.public void validateArraySize(int length)
public final int ll_getFSRef(FeatureStructure fs)
ll_getFSRef in interface LowLevelCASfs - The FS object for which we want the reference.public <T extends TOP> T ll_getFSForRef(int id)
LowLevelCASReturn a FS object that corresponds to a low-level reference. Note that this must be a valid reference that has been obtained from the low-level APIs. If the input reference parameter does not represent a valid reference, an exception is thrown.
In version 3, the map this API uses is not normally populated; it is populated only for Feature Structures created using the low-level APIs, and also when the ll_getFSRef API (above) is used, or the getAddress method is called on a Feature Structure
ll_getFSForRef in interface LowLevelCAST - the Java class for the Feature Structureid - The FS reference.public final int ll_getIntValue(int fsRef,
int featureCode)
ll_getIntValue in interface LowLevelCASfsRef - -featureCode - -public final float ll_getFloatValue(int fsRef,
int featureCode)
LowLevelCASll_getFloatValue in interface LowLevelCASfsRef - The reference to the FS from which to obtain the feature value.featureCode - The low-level code of the feature whose value is to be returned.public final String ll_getStringValue(int fsRef, int featureCode)
LowLevelCASll_getStringValue in interface LowLevelCASfsRef - The reference to the FS from which to obtain the feature value.featureCode - The low-level code of the feature whose value is to be returned.public final int ll_getRefValue(int fsRef,
int featureCode)
LowLevelCASll_getRefValue in interface LowLevelCASfsRef - The reference to the FS from which to obtain the feature value.featureCode - The low-level code of the feature whose value is to be returned.public final int ll_getIntValue(int fsRef,
int featureCode,
boolean doTypeChecks)
LowLevelCASll_getIntValue in interface LowLevelCASfsRef - The reference to the FS from which to obtain the feature value.featureCode - The low-level code of the feature whose value is to be returned.doTypeChecks - Switch to turn on type checking.public final float ll_getFloatValue(int fsRef,
int featureCode,
boolean doTypeChecks)
LowLevelCASll_getFloatValue in interface LowLevelCASfsRef - The reference to the FS from which to obtain the feature value.featureCode - The low-level code of the feature whose value is to be returned.doTypeChecks - Switch to turn on type checking.public final String ll_getStringValue(int fsRef, int featureCode, boolean doTypeChecks)
LowLevelCASll_getStringValue in interface LowLevelCASfsRef - The reference to the FS from which to obtain the feature value.featureCode - The low-level code of the feature whose value is to be returned.doTypeChecks - Switch to turn on type checking.public final int ll_getRefValue(int fsRef,
int featureCode,
boolean doTypeChecks)
LowLevelCASll_getRefValue in interface LowLevelCASfsRef - The reference to the FS from which to obtain the feature value.featureCode - The low-level code of the feature whose value is to be returned.doTypeChecks - Switch to turn on type checking.public void maybeAddback(TOP fs)
fs - the fs to add backpublic final void ll_setIntValue(int fsRef,
int featureCode,
int value)
ll_setIntValue in interface LowLevelCASfsRef - The reference of the FS on which the feature should be set.featureCode - The low-level feature code for the feature that should be set.value - The value to be assigned to the feature.public final void ll_setFloatValue(int fsRef,
int featureCode,
float value)
LowLevelCASll_setFloatValue in interface LowLevelCASfsRef - The reference of the FS on which the feature should be set.featureCode - The low-level feature code for the feature that should be set.value - The value to be assigned to the feature.public final void ll_setStringValue(int fsRef,
int featureCode,
String value)
LowLevelCASll_setStringValue in interface LowLevelCASfsRef - The reference of the FS on which the feature should be set.featureCode - The low-level feature code for the feature that should be set.value - The value to be assigned to the feature.public final void ll_setRefValue(int fsRef,
int featureCode,
int value)
LowLevelCASll_setRefValue in interface LowLevelCASfsRef - The reference of the FS on which the feature should be set.featureCode - The low-level feature code for the feature that should be set.value - The value to be assigned to the feature.public final void ll_setIntValue(int fsRef,
int featureCode,
int value,
boolean doTypeChecks)
LowLevelCASll_setIntValue in interface LowLevelCASfsRef - The reference of the FS on which the feature should be set.featureCode - The low-level feature code for the feature that should be set.value - The value to be assigned to the feature.doTypeChecks - Switch to turn on type checking.public final void ll_setFloatValue(int fsRef,
int featureCode,
float value,
boolean doTypeChecks)
LowLevelCASll_setFloatValue in interface LowLevelCASfsRef - The reference of the FS on which the feature should be set.featureCode - The low-level feature code for the feature that should be set.value - The value to be assigned to the feature.doTypeChecks - Switch to turn on type checking.public final void ll_setStringValue(int fsRef,
int featureCode,
String value,
boolean doTypeChecks)
LowLevelCASll_setStringValue in interface LowLevelCASfsRef - The reference of the FS on which the feature should be set.featureCode - The low-level feature code for the feature that should be set.value - The value to be assigned to the feature.doTypeChecks - Switch to turn on type checking.public final void ll_setCharBufferValue(int fsRef,
int featureCode,
char[] buffer,
int start,
int length,
boolean doTypeChecks)
ll_setCharBufferValue in interface LowLevelCASpublic final void ll_setCharBufferValue(int fsRef,
int featureCode,
char[] buffer,
int start,
int length)
ll_setCharBufferValue in interface LowLevelCASpublic int ll_copyCharBufferValue(int fsRef,
int featureCode,
char[] buffer,
int start)
ll_copyCharBufferValue in interface LowLevelCASpublic int ll_getCharBufferValueSize(int fsRef,
int featureCode)
ll_getCharBufferValueSize in interface LowLevelCASpublic final void ll_setRefValue(int fsRef,
int featureCode,
int value,
boolean doTypeChecks)
LowLevelCASll_setRefValue in interface LowLevelCASfsRef - The reference of the FS on which the feature should be set.featureCode - The low-level feature code for the feature that should be set.value - The value to be assigned to the feature.doTypeChecks - Switch to turn on type checking.public final int getIntArrayValue(IntegerArray array, int i)
public final float getFloatArrayValue(FloatArray array, int i)
public final String getStringArrayValue(StringArray array, int i)
public final FeatureStructure getRefArrayValue(FSArray array, int i)
public final int ll_getIntArrayValue(int fsRef,
int position)
LowLevelCASll_getIntArrayValue in interface LowLevelCASfsRef - The reference to the array FS.position - The position whose value should be returned.position.public final float ll_getFloatArrayValue(int fsRef,
int position)
LowLevelCASll_getFloatArrayValue in interface LowLevelCASfsRef - The reference to the array FS.position - The position whose value should be returned.position.public final String ll_getStringArrayValue(int fsRef, int position)
LowLevelCASll_getStringArrayValue in interface LowLevelCASfsRef - The reference to the array FS.position - The position whose value should be returned.position.public final int ll_getRefArrayValue(int fsRef,
int position)
LowLevelCASll_getRefArrayValue in interface LowLevelCASfsRef - The reference to the array FS.position - The position whose value should be returned.position.public final void checkArrayBounds(int fsRef,
int pos)
public final void checkArrayBounds(int arrayLength,
int pos,
int length)
public final int ll_getIntArrayValue(int fsRef,
int position,
boolean doTypeChecks)
LowLevelCASll_getIntArrayValue in interface LowLevelCASfsRef - The reference to the array FS.position - The position whose value should be returned.doTypeChecks - Switch to turn on type checking.position.public float ll_getFloatArrayValue(int fsRef,
int position,
boolean doTypeChecks)
LowLevelCASll_getFloatArrayValue in interface LowLevelCASfsRef - The reference to the array FS.position - The position whose value should be returned.doTypeChecks - Switch to turn on type checking.position.public String ll_getStringArrayValue(int fsRef, int position, boolean doTypeChecks)
LowLevelCASll_getStringArrayValue in interface LowLevelCASfsRef - The reference to the array FS.position - The position whose value should be returned.doTypeChecks - Switch to turn on type checking.position.public int ll_getRefArrayValue(int fsRef,
int position,
boolean doTypeChecks)
LowLevelCASll_getRefArrayValue in interface LowLevelCASfsRef - The reference to the array FS.position - The position whose value should be returned.doTypeChecks - Switch to turn on type checking.position.public void ll_setIntArrayValue(int fsRef,
int position,
int value,
boolean doTypeChecks)
LowLevelCASll_setIntArrayValue in interface LowLevelCASfsRef - The FS reference of the array.position - The position whose value will be changed.value - The new value.doTypeChecks - Switch to turn on type and bounds checking.public void ll_setFloatArrayValue(int fsRef,
int position,
float value,
boolean doTypeChecks)
LowLevelCASll_setFloatArrayValue in interface LowLevelCASfsRef - The FS reference of the array.position - The position whose value will be changed.value - The new value.doTypeChecks - Switch to turn on type and bounds checking.public void ll_setStringArrayValue(int fsRef,
int position,
String value,
boolean doTypeChecks)
LowLevelCASll_setStringArrayValue in interface LowLevelCASfsRef - The FS reference of the array.position - The position whose value will be changed.value - The new value.doTypeChecks - Switch to turn on type and bounds checking.public void ll_setRefArrayValue(int fsRef,
int position,
int value,
boolean doTypeChecks)
LowLevelCASll_setRefArrayValue in interface LowLevelCASfsRef - The FS reference of the array.position - The position whose value will be changed.value - The new value.doTypeChecks - Switch to turn on type and bounds checking.public void ll_setIntArrayValue(int fsRef,
int position,
int value)
LowLevelCASll_setIntArrayValue in interface LowLevelCASfsRef - The FS reference of the array.position - The position whose value will be changed.value - The new value.public void ll_setFloatArrayValue(int fsRef,
int position,
float value)
LowLevelCASll_setFloatArrayValue in interface LowLevelCASfsRef - The FS reference of the array.position - The position whose value will be changed.value - The new value.public void ll_setStringArrayValue(int fsRef,
int position,
String value)
LowLevelCASll_setStringArrayValue in interface LowLevelCASfsRef - The FS reference of the array.position - The position whose value will be changed.value - The new value.public void ll_setRefArrayValue(int fsRef,
int position,
int value)
LowLevelCASll_setRefArrayValue in interface LowLevelCASfsRef - The FS reference of the array.position - The position whose value will be changed.value - The new value.public int ll_getFSRefType(int fsRef)
LowLevelCASfsRef is
not a fs reference, the results are undefined. There is also a checked version of this call,
which will give better error messages in case of problems.ll_getFSRefType in interface LowLevelCASfsRef - an id for a FSpublic int ll_getFSRefType(int fsRef,
boolean doChecks)
LowLevelCASll_getFSRefType in interface LowLevelCASfsRef - The FS reference.doChecks - Check fsRef for out-of-range errors. If this switch is not set, and the input
reference is not a valid reference, the results are undefined.0 means that the
fsRef is invalid, i.e., NULL_FS_REF (but see remarks on bounds checking
for this method).public LowLevelCAS getLowLevelCAS()
CASNote: This is for internal use.
getLowLevelCAS in interface CASLowLevelCASpublic int size()
CASpublic ClassLoader getJCasClassLoader()
CASMgrgetJCasClassLoader in interface CASMgrpublic void setJCasClassLoader(ClassLoader classLoader)
CASMgrsetJCasClassLoader in interface CASMgrclassLoader - the JCas ClassLoder for this CASpublic void switchClassLoader(ClassLoader newClassLoader, boolean wasLocked)
public void switchClassLoaderLockCas(Object userCode)
public void switchClassLoaderLockCasCL(ClassLoader newClassLoader)
public void restoreClassLoaderUnlockCas()
public FeatureValuePath createFeatureValuePath(String featureValuePath) throws CASRuntimeException
CAScreateFeatureValuePath in interface CASfeatureValuePath - String representation of the feature-value path.CASRuntimeException - If the input string is not well-formed.public void setOwner(CasOwner aCasOwner)
AbstractCas_ImplBasesetOwner in class AbstractCas_ImplBaseaCasOwner - -public void release()
AbstractCas_ImplBaseCasOwner.releaseCas(AbstractCas).release in interface AbstractCasrelease in class AbstractCas_ImplBasepublic ByteArrayFS createByteArrayFS(int length) throws CASRuntimeException
CAScreateByteArrayFS in interface CASlength - The length of the array.CASRuntimeExceptionpublic BooleanArrayFS createBooleanArrayFS(int length) throws CASRuntimeException
CAScreateBooleanArrayFS in interface CASlength - The length of the array.CASRuntimeExceptionpublic ShortArrayFS createShortArrayFS(int length) throws CASRuntimeException
CAScreateShortArrayFS in interface CASlength - The length of the array.CASRuntimeExceptionpublic LongArrayFS createLongArrayFS(int length) throws CASRuntimeException
CAScreateLongArrayFS in interface CASlength - The length of the array.CASRuntimeExceptionpublic DoubleArrayFS createDoubleArrayFS(int length) throws CASRuntimeException
CAScreateDoubleArrayFS in interface CASlength - The length of the array.CASRuntimeExceptionpublic byte ll_getByteValue(int fsRef,
int featureCode)
ll_getByteValue in interface LowLevelCASpublic byte ll_getByteValue(int fsRef,
int featureCode,
boolean doTypeChecks)
ll_getByteValue in interface LowLevelCASpublic boolean ll_getBooleanValue(int fsRef,
int featureCode)
ll_getBooleanValue in interface LowLevelCASpublic boolean ll_getBooleanValue(int fsRef,
int featureCode,
boolean doTypeChecks)
ll_getBooleanValue in interface LowLevelCASpublic short ll_getShortValue(int fsRef,
int featureCode)
ll_getShortValue in interface LowLevelCASpublic short ll_getShortValue(int fsRef,
int featureCode,
boolean doTypeChecks)
ll_getShortValue in interface LowLevelCASpublic long ll_getLongValue(int fsRef,
int featureCode)
ll_getLongValue in interface LowLevelCASpublic long ll_getLongValue(int fsRef,
int featureCode,
boolean doTypeChecks)
ll_getLongValue in interface LowLevelCASpublic double ll_getDoubleValue(int fsRef,
int featureCode)
ll_getDoubleValue in interface LowLevelCASpublic double ll_getDoubleValue(int fsRef,
int featureCode,
boolean doTypeChecks)
ll_getDoubleValue in interface LowLevelCASpublic void ll_setBooleanValue(int fsRef,
int featureCode,
boolean value)
ll_setBooleanValue in interface LowLevelCASpublic void ll_setBooleanValue(int fsRef,
int featureCode,
boolean value,
boolean doTypeChecks)
ll_setBooleanValue in interface LowLevelCASpublic final void ll_setByteValue(int fsRef,
int featureCode,
byte value)
ll_setByteValue in interface LowLevelCASpublic void ll_setByteValue(int fsRef,
int featureCode,
byte value,
boolean doTypeChecks)
ll_setByteValue in interface LowLevelCASpublic final void ll_setShortValue(int fsRef,
int featureCode,
short value)
ll_setShortValue in interface LowLevelCASpublic void ll_setShortValue(int fsRef,
int featureCode,
short value,
boolean doTypeChecks)
ll_setShortValue in interface LowLevelCASpublic void ll_setLongValue(int fsRef,
int featureCode,
long value)
ll_setLongValue in interface LowLevelCASpublic void ll_setLongValue(int fsRef,
int featureCode,
long value,
boolean doTypeChecks)
ll_setLongValue in interface LowLevelCASpublic void ll_setDoubleValue(int fsRef,
int featureCode,
double value)
ll_setDoubleValue in interface LowLevelCASpublic void ll_setDoubleValue(int fsRef,
int featureCode,
double value,
boolean doTypeChecks)
ll_setDoubleValue in interface LowLevelCASpublic byte ll_getByteArrayValue(int fsRef,
int position)
ll_getByteArrayValue in interface LowLevelCASpublic byte ll_getByteArrayValue(int fsRef,
int position,
boolean doTypeChecks)
ll_getByteArrayValue in interface LowLevelCASpublic boolean ll_getBooleanArrayValue(int fsRef,
int position)
ll_getBooleanArrayValue in interface LowLevelCASpublic boolean ll_getBooleanArrayValue(int fsRef,
int position,
boolean doTypeChecks)
ll_getBooleanArrayValue in interface LowLevelCASpublic short ll_getShortArrayValue(int fsRef,
int position)
ll_getShortArrayValue in interface LowLevelCASpublic short ll_getShortArrayValue(int fsRef,
int position,
boolean doTypeChecks)
ll_getShortArrayValue in interface LowLevelCASpublic long ll_getLongArrayValue(int fsRef,
int position)
ll_getLongArrayValue in interface LowLevelCASpublic long ll_getLongArrayValue(int fsRef,
int position,
boolean doTypeChecks)
ll_getLongArrayValue in interface LowLevelCASpublic double ll_getDoubleArrayValue(int fsRef,
int position)
ll_getDoubleArrayValue in interface LowLevelCASpublic double ll_getDoubleArrayValue(int fsRef,
int position,
boolean doTypeChecks)
ll_getDoubleArrayValue in interface LowLevelCASpublic void ll_setByteArrayValue(int fsRef,
int position,
byte value)
ll_setByteArrayValue in interface LowLevelCASpublic void ll_setByteArrayValue(int fsRef,
int position,
byte value,
boolean doTypeChecks)
ll_setByteArrayValue in interface LowLevelCASpublic void ll_setBooleanArrayValue(int fsRef,
int position,
boolean b)
ll_setBooleanArrayValue in interface LowLevelCASpublic void ll_setBooleanArrayValue(int fsRef,
int position,
boolean value,
boolean doTypeChecks)
ll_setBooleanArrayValue in interface LowLevelCASpublic void ll_setShortArrayValue(int fsRef,
int position,
short value)
ll_setShortArrayValue in interface LowLevelCASpublic void ll_setShortArrayValue(int fsRef,
int position,
short value,
boolean doTypeChecks)
ll_setShortArrayValue in interface LowLevelCASpublic void ll_setLongArrayValue(int fsRef,
int position,
long value)
ll_setLongArrayValue in interface LowLevelCASpublic void ll_setLongArrayValue(int fsRef,
int position,
long value,
boolean doTypeChecks)
ll_setLongArrayValue in interface LowLevelCASpublic void ll_setDoubleArrayValue(int fsRef,
int position,
double d)
ll_setDoubleArrayValue in interface LowLevelCASpublic void ll_setDoubleArrayValue(int fsRef,
int position,
double value,
boolean doTypeChecks)
ll_setDoubleArrayValue in interface LowLevelCASpublic boolean isAnnotationType(Type t)
public boolean isSubtypeOfAnnotationBaseType(int t)
t - the type code to testpublic boolean isBaseCas()
public Annotation createAnnotation(Type type, int begin, int end)
CAScreateAnnotation in interface CAStype - The type of the annotation.begin - The start of the annotation.end - The end of the annotation.public int ll_createAnnotation(int typeCode,
int begin,
int end)
public <T extends AnnotationFS> AnnotationIndex<T> getAnnotationIndex()
getAnnotationIndex in interface CAST - the Java class associated with the annotation indexpublic <T extends AnnotationFS> AnnotationIndex<T> getAnnotationIndex(Type type) throws CASRuntimeException
CASgetAnnotationIndex in interface CAST - the topmost Java class corresponding to the typetype - The annotation type the index is restricted to.type.CASRuntimeException - When type is not an annotation type.public Type getAnnotationType()
CASgetAnnotationType in interface CASCAS.getAnnotationType()public Feature getEndFeature()
CASgetEndFeature in interface CASCAS.getEndFeature()public Feature getBeginFeature()
CASgetBeginFeature in interface CASCAS.getBeginFeature()public <T extends Annotation> T createDocumentAnnotationNoRemoveNoIndex(int length)
public int ll_createDocumentAnnotation(int length)
public int ll_createDocumentAnnotationNoIndex(int begin,
int end)
public void updateDocumentAnnotation()
public <T extends AnnotationFS> T getDocumentAnnotation()
getDocumentAnnotation in interface CAST - the Java class for the document annotation. Could be the JCas cover class or
FeatureStructurepublic <T extends AnnotationFS> T getDocumentAnnotationNoCreate()
public int ll_getDocumentAnnotation()
public String getDocumentLanguage()
CASgetDocumentLanguage in interface CASpublic String getDocumentText()
CASgetDocumentText in interface CASnull if not set.public String getSofaDataString()
CASgetSofaDataString in interface CASnull if not set.public FeatureStructure getSofaDataArray()
CASgetSofaDataArray in interface CASnull if not set.public String getSofaDataURI()
CASgetSofaDataURI in interface CASnull if not set.public InputStream getSofaDataStream()
CASgetSofaDataStream in interface CASnull if not set.public String getSofaMimeType()
CASgetSofaMimeType in interface CASpublic Sofa getSofa()
CASpublic int ll_getSofa()
ll_getSofa in interface LowLevelCASpublic String getViewName()
CASgetViewName in interface CASpublic void setDocumentLanguage(String languageCode)
CASsetDocumentLanguage in interface CASlanguageCode - -public void setDocumentText(String text)
CASsetDocumentText in interface CAStext - The text to be analyzed.public void setSofaDataString(String text, String mime) throws CASRuntimeException
CASsetSofaDataString in interface CAStext - The text to be analyzed.mime - The mime type of the dataCASRuntimeException - If the Sofa data has already been set.public void setSofaDataArray(FeatureStructure array, String mime)
CASsetSofaDataArray in interface CASarray - The ArrayFS to be analyzed.mime - The mime type of the datapublic void setSofaDataURI(String uri, String mime) throws CASRuntimeException
CASsetSofaDataURI in interface CASuri - The URI of the data to be analyzed.mime - The mime type of the dataCASRuntimeException - If the Sofa data has already been set.public void setCurrentComponentInfo(ComponentInfo info)
CASsetCurrentComponentInfo in interface CASinfo - information about the component that is currently processing this CAS.public void addFsToIndexes(FeatureStructure fs)
CAS
Important: after you have called addFsToIndexes(...) on a FS, do not change
the values of any features used for indexing. If you do, the index will become corrupted and
may be unusable. If you need to change an index feature value, first call
removeFsFromIndexes(...) on the FS, change the
feature values, then call addFsToIndexes(...) again.
addFsToIndexes in interface CASfs - The Feature Structure to be added.CAS.addFsToIndexes(FeatureStructure fs)public void removeFsFromIndexes(FeatureStructure fs)
CASremoveFsFromIndexes in interface CASfs - The Feature Structure to be removed.CAS.removeFsFromIndexes(FeatureStructure fs)public CASImpl getSofaCasView(AnnotationBase fs)
fs - the AnnotationBase instancepublic CASImpl ll_getSofaCasView(int id)
ll_getSofaCasView in interface LowLevelCASpublic int getNumberOfViews()
public int getNumberOfSofas()
public <T extends CAS> Iterator<T> getViewIterator()
CASgetViewIterator in interface CAST - generic type of returned viewpublic Iterator<CASImpl> getViewImplIterator()
public void forAllViews(Consumer<CASImpl> processViews)
processViews - action to perform on the views.public Iterator<CAS> getViewIterator(String localViewNamePrefix)
CAS
When passed the prefix namePrefix, the iterator will return all views who name is either
exactly equal to namePrefix or is of the form
namePrefix.suffix, where suffix can be any String.
getViewIterator in interface CASlocalViewNamePrefix - the local name prefix, before any sofa name mapping is done, for this view (note: this
is the same as the associated Sofa name prefix).public AutoCloseableNoException protectIndexes()
protectIndexes in interface CASpublic void protectIndexes(Runnable r)
CASprotectIndexes in interface CASr - an inner block of code to be run withpublic Marker createMarker()
createMarker in interface CASpublic MarkerImpl getCurrentMark()
public int getCasResets()
public String getCasId()
public final int getNextFsId(TOP fs)
public void adjustLastFsV2Size_arrays(int arrayLength)
public void adjustLastFsV2size_nonHeapStoredArrays()
public void setId2FSsMaybeUnconditionally(FeatureStructure... fss)
fss - the FSs to include in the id 2 fs mappublic final int getLastUsedFsId()
public final int peekNextFsId()
public final int lastV2IdIncr()
public final void captureLastFsIdForOtherThread()
public <T extends TOP> T getFsFromId(int id)
public List<TOP> walkReachablePlusFSsSorted(Consumer<TOP> action_filtered, MarkerImpl mark, Predicate<TOP> includeFilter, CasTypeSystemMapper typeMapper)
action_filtered - action to perform on each item after filteringmark - null or the markincludeFilter - null or a filter (exclude items not in other type system)typeMapper - null or how to map to other type system, used to skip things missing in other type
systempublic boolean isInCAS(FeatureStructure fs)
public final void checkArrayPreconditions(int len)
throws CASRuntimeException
CASRuntimeExceptionpublic <T extends TOP> EmptyFSList<T> emptyFSList()
emptyFSList in interface CAST - the type of the elements of the FSListpublic EmptyFloatList emptyFloatList()
emptyFloatList in interface CASpublic EmptyIntegerList emptyIntegerList()
emptyIntegerList in interface CASpublic EmptyStringList emptyStringList()
emptyStringList in interface CASpublic CommonArrayFS emptyArray(Type type)
public FloatArray emptyFloatArray()
emptyFloatArray in interface CASpublic <T extends FeatureStructure> FSArray<T> emptyFSArray()
emptyFSArray in interface CAST - the type of the elements of the FSArraypublic <T extends FeatureStructure> FSArray<T> emptyFSArray(Type type)
emptyFSArray in interface CAST - the type of the elements of the FSArraytype - the type of the elements of the FSArraypublic IntegerArray emptyIntegerArray()
emptyIntegerArray in interface CASpublic StringArray emptyStringArray()
emptyStringArray in interface CASpublic DoubleArray emptyDoubleArray()
emptyDoubleArray in interface CASpublic LongArray emptyLongArray()
emptyLongArray in interface CASpublic ShortArray emptyShortArray()
emptyShortArray in interface CASpublic ByteArray emptyByteArray()
emptyByteArray in interface CASpublic BooleanArray emptyBooleanArray()
emptyBooleanArray in interface CASpublic EmptyList emptyList(int rangeCode)
rangeCode - special codes for serialization use onlypublic EmptyList emptyListFromTypeCode(int typeCode)
typeCode - -public static boolean copyFeatureExceptFsRef(TOP fsSrc, FeatureImpl fiSrc, TOP fsTgt, FeatureImpl fiTgt)
fsSrc - source FSfiSrc - feature in source to copyfsTgt - target FSfiTgt - feature in target to setpublic static CommonArrayFS copyArray(TOP srcArray)
public BinaryCasSerDes getBinaryCasSerDes()
public void deltaMergesComplete()
public void traceFSCreate(FeatureStructureImplC fs)
public StringBuilder traceFSflush()
@Deprecated public void setCAS(CAS cas)
CASMgrpublic int getInitialHeapSize()
public void reinit(CASSerializer ser)
ser - - The instance to convert back to a CASpublic void reinit(CASCompleteSerializer casCompSer)
casCompSer - -public SerialFormat reinit(InputStream istream) throws CASRuntimeException
istream - -CASRuntimeException - wraps IOExceptionpublic void swapInPearVersion(Object[] a)
public Collection<?> collectNonPearVersions(Collection<?> c)
public <T> Spliterator<T> makePearAware(Spliterator<T> baseSi)
public boolean is_ll_enableV2IdRefs()
is_ll_enableV2IdRefs in interface LowLevelCASpublic AutoCloseableNoException ll_enableV2IdRefs(boolean enable)
LowLevelCASll_enableV2IdRefs in interface LowLevelCASenable - true to enable, false to disablepublic void set_deserialized_doc_annot_not_indexed(Annotation doc_annot)
Copyright © 2006–2022 The Apache Software Foundation. All rights reserved.