public final class LongArray_Type extends CommonArray_Type
| Modifier and Type | Field and Description |
|---|---|
static int |
typeIndexID
this types ID - used to index a localTypeArray in JCas to get an index which indexes the global
typeArray in JCas instance to get a ref to this instance
|
casImpl, casType, casTypeCode, instanceOf_Type, jcas, ll_cas, lowLevelArrayBoundChecks, lowLevelTypeChecks, useExistingInstance| Constructor and Description |
|---|
LongArray_Type(JCas jcas,
Type casType) |
| Modifier and Type | Method and Description |
|---|---|
void |
copyFromArray(int addr,
long[] src,
int srcOffset,
int destOffset,
int length) |
void |
copyToArray(int addr,
int srcOffset,
long[] dest,
int destOffset,
int length) |
long |
get(int addr,
int i) |
protected FSGenerator<?> |
getFSGenerator() |
void |
set(int addr,
int i,
long v)
updates the Cas, setting the indexed value to the passed in Java long.
|
long[] |
toArray(int addr) |
sizeaddToIndexes, checkType, getTypeIndexID, invalidTypeArg, noObjCreate, removeFromIndexespublic static final int typeIndexID
protected FSGenerator<?> getFSGenerator()
getFSGenerator in class TOP_Typepublic long get(int addr,
int i)
addr - low level CAS Feature Structure referencei - the indexLongArrayFS.get(int)public void set(int addr,
int i,
long v)
addr - low level CAS Feature Structure referencei - the indexv - the value to setLongArrayFS.set(int, long)public void copyFromArray(int addr,
long[] src,
int srcOffset,
int destOffset,
int length)
addr - low level CAS Feature Structure referencesrc - the Java object to coyp fromsrcOffset - the source offsetdestOffset - the destination (in the CAS) offsetlength - the number of items to copyLongArrayFS.copyFromArray(long[], int, int, int)public void copyToArray(int addr,
int srcOffset,
long[] dest,
int destOffset,
int length)
addr - low level CAS Feature Structure referencesrcOffset - the source offset in the CASdest - the Java object to copy intodestOffset - the destination offsetlength - the number of items to copyLongArrayFS.copyToArray(int, long[], int, int)public long[] toArray(int addr)
addr - low level CAS Feature Structure referenceLongArrayFS.toArray()Copyright © 2006–2021 The Apache Software Foundation. All rights reserved.