public interface LowLevelCAS
The basic concepts of the low-level APIs is very simple. The CAS does not internally hold its data as Java objects, for performance reasons. The low-level APIs give you access to this data more or less directly. Instead of creating Java objects that you can manipulate in an OO fashion, you only obtain int values that are used as references to internal data. Thus, if you would like to change values on a particular piece of data, you need to hand the FS reference to the API, as opposed to calling methods on a FS object. The tricky part about the low-level APIs is that it's all just ints, and it is very easy to confuse an int that represents a type code with an int that represents a feature code or a FS reference. Particular care is therefore necessary when using the low-level APIs. Please follow the guidelines for turning on a minimum of checks below.
This API represents the supported access to low-level features of the UIMA framework CAS implementation. Other public APIs in the implementation are not supported and are subject to change without notice.
Please note that you really need to know what you're doing when using these APIs. Incorrect usage of these APIs can and will cause completely unpredictable results; likely your application will crash, and it will do so much later than where the incorrect usage occured. The low-level APIs are very hard to debug. You should only use the low-level APIs if you have carefully profiled your application and are sure that the high-level CAS APIs or the JCAS represent a performance bottleneck.
Note that most low-level APIs have versions that allow you to turn some form of parameter checking on. We strongly encourage you to use those versions during development, they may save you a lot of time. One way you can use the type checking switch is by having a constant
static final boolean DO_TYPE_CHECK = true;
which you can use during development. For production level code, you can later change the
constant to false
. The performance difference to the non-parametrized versions of
the getters and setters is probably negligible or may not even exist, depending on the Java
runtime.
Please note that even with the check switches turned on, it is still possible to make mistakes that only show up much later in processing. The main problem is that it is simply impossible to determine for certain whether a given FS reference is valid or not. The implementation can only determine that it looks like a reference that points at a valid piece of data, but this could be accidental.
Modifier and Type | Field and Description |
---|---|
static int |
NULL_FS_REF |
static int |
TYPE_CLASS_BOOLEAN |
static int |
TYPE_CLASS_BOOLEANARRAY |
static int |
TYPE_CLASS_BYTE |
static int |
TYPE_CLASS_BYTEARRAY |
static int |
TYPE_CLASS_DOUBLE |
static int |
TYPE_CLASS_DOUBLEARRAY |
static int |
TYPE_CLASS_FLOAT
Float type.
|
static int |
TYPE_CLASS_FLOATARRAY
Float array type.
|
static int |
TYPE_CLASS_FS
FS type (all other types, include all user-defined ones).
|
static int |
TYPE_CLASS_FSARRAY
FS array type.
|
static int |
TYPE_CLASS_INT
Integer type.
|
static int |
TYPE_CLASS_INTARRAY
Integer type.
|
static int |
TYPE_CLASS_INVALID
Not a valid type.
|
static int |
TYPE_CLASS_LONG |
static int |
TYPE_CLASS_LONGARRAY |
static int |
TYPE_CLASS_SHORT |
static int |
TYPE_CLASS_SHORTARRAY |
static int |
TYPE_CLASS_STRING
String type.
|
static int |
TYPE_CLASS_STRINGARRAY
String array type.
|
Modifier and Type | Method and Description |
---|---|
boolean |
is_ll_enableV2IdRefs() |
int |
ll_copyCharBufferValue(int fsRef,
int featureCode,
char[] buffer,
int start) |
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_createDoubleArray(int arrayLength) |
int |
ll_createFS(int typeCode)
Create a new FS on the heap.
|
int |
ll_createFS(int typeCode,
boolean doTypeCheck)
Create a new FS on the heap.
|
int |
ll_createLongArray(int arrayLength) |
int |
ll_createShortArray(int arrayLength) |
static AutoCloseableNoException |
ll_defaultV2IdRefs()
Defaults new CASs to have the id_to_fs_map enabled
|
static AutoCloseableNoException |
ll_defaultV2IdRefs(boolean enable)
Sets the defaults for new CASs to have the id_to_fs_map enabled.
|
default AutoCloseableNoException |
ll_enableV2IdRefs()
Enables the id_to_fs_map mode.
|
AutoCloseableNoException |
ll_enableV2IdRefs(boolean enable)
Enables or disables the id_to_fs_map mode.
|
int |
ll_getArraySize(int arrayFsRef)
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) |
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 fsRef)
Return a FS object that corresponds to a low-level reference.
|
int |
ll_getFSRef(FeatureStructure fsImpl)
Get the low-level reference from an existing FS object.
|
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)
Get the value of an integer valued feature.
|
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 addr) |
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 b,
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 doChecks) |
void |
ll_setDoubleArrayValue(int fsRef,
int position,
double d) |
void |
ll_setDoubleArrayValue(int fsRef,
int position,
double d,
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)
Set the value of an integer feature.
|
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 final int TYPE_CLASS_INVALID
ll_getTypeClass()
.static final int TYPE_CLASS_INT
ll_getTypeClass()
.static final int TYPE_CLASS_FLOAT
ll_getTypeClass()
.static final int TYPE_CLASS_STRING
ll_getTypeClass()
.static final int TYPE_CLASS_INTARRAY
ll_getTypeClass()
.static final int TYPE_CLASS_FLOATARRAY
ll_getTypeClass()
.static final int TYPE_CLASS_STRINGARRAY
ll_getTypeClass()
.static final int TYPE_CLASS_FSARRAY
ll_getTypeClass()
.static final int TYPE_CLASS_FS
ll_getTypeClass()
.static final int TYPE_CLASS_BOOLEAN
static final int TYPE_CLASS_BYTE
static final int TYPE_CLASS_SHORT
static final int TYPE_CLASS_LONG
static final int TYPE_CLASS_DOUBLE
static final int TYPE_CLASS_BOOLEANARRAY
static final int TYPE_CLASS_BYTEARRAY
static final int TYPE_CLASS_SHORTARRAY
static final int TYPE_CLASS_LONGARRAY
static final int TYPE_CLASS_DOUBLEARRAY
static final int NULL_FS_REF
LowLevelTypeSystem ll_getTypeSystem()
LowLevelIndexRepository ll_getIndexRepository()
int ll_createFS(int typeCode)
typeCode
- 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.int ll_createFS(int typeCode, boolean doTypeCheck)
typeCode
- 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.doTypeCheck
- -LowLevelException
- If the type checking switch is set and the type code argument is not valid.int ll_createArray(int typeCode, int arrayLength)
typeCode
- 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.int ll_createArray(int typeCode, int arrayLength, boolean doChecks)
typeCode
- The type code of the array to be created.arrayLength
- The length of the array to be created.doChecks
- Switch to turn on various sanity checks.int ll_createBooleanArray(int arrayLength)
int ll_createByteArray(int arrayLength)
int ll_createShortArray(int arrayLength)
int ll_createLongArray(int arrayLength)
int ll_createDoubleArray(int arrayLength)
int ll_getArraySize(int arrayFsRef)
arrayFsRef
- The array reference.int ll_getFSRef(FeatureStructure fsImpl)
fsImpl
- The FS object for which we want the reference.<T extends TOP> T ll_getFSForRef(int fsRef)
Return 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
T
- the Java class for the Feature StructurefsRef
- The FS reference.int ll_getIntValue(int fsRef, int featureCode)
fsRef
- 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.float ll_getFloatValue(int fsRef, int featureCode)
fsRef
- 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.String ll_getStringValue(int fsRef, int featureCode)
fsRef
- 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.int ll_getRefValue(int fsRef, int featureCode)
fsRef
- 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.int ll_getIntValue(int fsRef, int featureCode, boolean doTypeChecks)
fsRef
- 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.float ll_getFloatValue(int fsRef, int featureCode, boolean doTypeChecks)
fsRef
- 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.String ll_getStringValue(int fsRef, int featureCode, boolean doTypeChecks)
fsRef
- 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.int ll_getRefValue(int fsRef, int featureCode, boolean doTypeChecks)
fsRef
- 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.void ll_setIntValue(int fsRef, int featureCode, int value)
fsRef
- 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.void ll_setFloatValue(int fsRef, int featureCode, float value)
fsRef
- 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.void ll_setStringValue(int fsRef, int featureCode, String value)
fsRef
- 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.void ll_setRefValue(int fsRef, int featureCode, int value)
fsRef
- 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.void ll_setIntValue(int fsRef, int featureCode, int value, boolean doTypeChecks)
fsRef
- 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.void ll_setFloatValue(int fsRef, int featureCode, float value, boolean doTypeChecks)
fsRef
- 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.void ll_setStringValue(int fsRef, int featureCode, String value, boolean doTypeChecks)
fsRef
- 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.void ll_setCharBufferValue(int fsRef, int featureCode, char[] buffer, int start, int length, boolean doChecks)
void ll_setCharBufferValue(int fsRef, int featureCode, char[] buffer, int start, int length)
int ll_getCharBufferValueSize(int fsRef, int featureCode)
int ll_copyCharBufferValue(int fsRef, int featureCode, char[] buffer, int start)
void ll_setRefValue(int fsRef, int featureCode, int value, boolean doTypeChecks)
fsRef
- 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.int ll_getIntArrayValue(int fsRef, int position)
fsRef
- The reference to the array FS.position
- The position whose value should be returned.position
.float ll_getFloatArrayValue(int fsRef, int position)
fsRef
- The reference to the array FS.position
- The position whose value should be returned.position
.String ll_getStringArrayValue(int fsRef, int position)
fsRef
- The reference to the array FS.position
- The position whose value should be returned.position
.int ll_getRefArrayValue(int fsRef, int position)
fsRef
- The reference to the array FS.position
- The position whose value should be returned.position
.int ll_getIntArrayValue(int fsRef, int position, boolean doTypeChecks)
fsRef
- The reference to the array FS.position
- The position whose value should be returned.doTypeChecks
- Switch to turn on type checking.position
.float ll_getFloatArrayValue(int fsRef, int position, boolean doTypeChecks)
fsRef
- The reference to the array FS.position
- The position whose value should be returned.doTypeChecks
- Switch to turn on type checking.position
.String ll_getStringArrayValue(int fsRef, int position, boolean doTypeChecks)
fsRef
- The reference to the array FS.position
- The position whose value should be returned.doTypeChecks
- Switch to turn on type checking.position
.int ll_getRefArrayValue(int fsRef, int position, boolean doTypeChecks)
fsRef
- The reference to the array FS.position
- The position whose value should be returned.doTypeChecks
- Switch to turn on type checking.position
.void ll_setIntArrayValue(int fsRef, int position, int value, boolean doTypeChecks)
fsRef
- The FS reference of the array.position
- The position whose value will be changed.doTypeChecks
- Switch to turn on type and bounds checking.value
- The new value.void ll_setFloatArrayValue(int fsRef, int position, float value, boolean doTypeChecks)
fsRef
- The FS reference of the array.position
- The position whose value will be changed.doTypeChecks
- Switch to turn on type and bounds checking.value
- The new value.void ll_setStringArrayValue(int fsRef, int position, String value, boolean doTypeChecks)
fsRef
- The FS reference of the array.position
- The position whose value will be changed.doTypeChecks
- Switch to turn on type and bounds checking.value
- The new value.void ll_setRefArrayValue(int fsRef, int position, int value, boolean doTypeChecks)
fsRef
- The FS reference of the array.position
- The position whose value will be changed.doTypeChecks
- Switch to turn on type and bounds checking.value
- The new value.void ll_setIntArrayValue(int fsRef, int position, int value)
fsRef
- The FS reference of the array.position
- The position whose value will be changed.value
- The new value.void ll_setFloatArrayValue(int fsRef, int position, float value)
fsRef
- The FS reference of the array.position
- The position whose value will be changed.value
- The new value.void ll_setStringArrayValue(int fsRef, int position, String value)
fsRef
- The FS reference of the array.position
- The position whose value will be changed.value
- The new value.void ll_setRefArrayValue(int fsRef, int position, int value)
fsRef
- The FS reference of the array.position
- The position whose value will be changed.value
- The new value.int ll_getFSRefType(int fsRef)
fsRef
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.fsRef
- The FS reference.0
means that the
fsRef is invalid, i.e., NULL_FS_REF
(but see remarks on bounds checking
for this method).int ll_getFSRefType(int fsRef, boolean doChecks)
fsRef
- 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).int ll_getTypeClass(int typeCode)
TYPE_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.typeCode
- The type code.TYPE_CLASS_INVALID
if the type code
argument does not represent a valid type code.boolean ll_isRefType(int typeCode)
typeCode
- The type code to check.true
iff typeCode
is the type code of a reference type.byte ll_getByteValue(int fsRef, int featureCode)
boolean ll_getBooleanValue(int fsRef, int featureCode)
short ll_getShortValue(int fsRef, int featureCode)
long ll_getLongValue(int fsRef, int featureCode)
double ll_getDoubleValue(int fsRef, int featureCode)
byte ll_getByteValue(int fsRef, int featureCode, boolean doTypeChecks)
boolean ll_getBooleanValue(int fsRef, int featureCode, boolean doTypeChecks)
short ll_getShortValue(int fsRef, int featureCode, boolean doTypeChecks)
long ll_getLongValue(int fsRef, int featureCode, boolean doTypeChecks)
double ll_getDoubleValue(int fsRef, int featureCode, boolean doTypeChecks)
void ll_setBooleanValue(int fsRef, int featureCode, boolean value)
void ll_setByteValue(int fsRef, int featureCode, byte value)
void ll_setShortValue(int fsRef, int featureCode, short value)
void ll_setLongValue(int fsRef, int featureCode, long value)
void ll_setDoubleValue(int fsRef, int featureCode, double value)
void ll_setBooleanValue(int fsRef, int featureCode, boolean value, boolean doTypeChecks)
void ll_setByteValue(int fsRef, int featureCode, byte value, boolean doTypeChecks)
void ll_setShortValue(int fsRef, int featureCode, short value, boolean doTypeChecks)
void ll_setLongValue(int fsRef, int featureCode, long value, boolean doTypeChecks)
void ll_setDoubleValue(int fsRef, int featureCode, double value, boolean doTypeChecks)
byte ll_getByteArrayValue(int fsRef, int position)
boolean ll_getBooleanArrayValue(int fsRef, int position)
short ll_getShortArrayValue(int fsRef, int position)
long ll_getLongArrayValue(int fsRef, int position)
double ll_getDoubleArrayValue(int fsRef, int position)
byte ll_getByteArrayValue(int fsRef, int position, boolean doTypeChecks)
boolean ll_getBooleanArrayValue(int fsRef, int position, boolean doTypeChecks)
short ll_getShortArrayValue(int fsRef, int position, boolean doTypeChecks)
long ll_getLongArrayValue(int fsRef, int position, boolean doTypeChecks)
double ll_getDoubleArrayValue(int fsRef, int position, boolean doTypeChecks)
void ll_setByteArrayValue(int fsRef, int position, byte value)
void ll_setBooleanArrayValue(int fsRef, int position, boolean b)
void ll_setShortArrayValue(int fsRef, int position, short value)
void ll_setLongArrayValue(int fsRef, int position, long value)
void ll_setDoubleArrayValue(int fsRef, int position, double d)
void ll_setByteArrayValue(int fsRef, int position, byte value, boolean doTypeChecks)
void ll_setBooleanArrayValue(int fsRef, int position, boolean b, boolean doTypeChecks)
void ll_setShortArrayValue(int fsRef, int position, short value, boolean doTypeChecks)
void ll_setLongArrayValue(int fsRef, int position, long value, boolean doTypeChecks)
void ll_setDoubleArrayValue(int fsRef, int position, double d, boolean doTypeChecks)
CASImpl ll_getSofaCasView(int addr)
int ll_getSofa()
default AutoCloseableNoException ll_enableV2IdRefs()
AutoCloseableNoException ll_enableV2IdRefs(boolean enable)
enable
- true to enable, false to disableboolean is_ll_enableV2IdRefs()
static AutoCloseableNoException ll_defaultV2IdRefs()
static AutoCloseableNoException ll_defaultV2IdRefs(boolean enable)
enable
- true to enable, false to disableCopyright © 2006–2022 The Apache Software Foundation. All rights reserved.