public class FloatArray_Type extends CommonArray_Type
Modifier and Type | Field and Description |
---|---|
static int |
typeIndexID |
casImpl, casType, casTypeCode, instanceOf_Type, jcas, ll_cas, lowLevelArrayBoundChecks, lowLevelTypeChecks, useExistingInstance
Constructor and Description |
---|
FloatArray_Type(JCas jcas,
Type casType) |
Modifier and Type | Method and Description |
---|---|
void |
copyFromArray(int addr,
float[] src,
int srcOffset,
int destOffset,
int length) |
void |
copyToArray(int addr,
int srcOffset,
float[] dest,
int destOffset,
int length) |
float |
get(int addr,
int i) |
protected org.apache.uima.cas.impl.FSGenerator<?> |
getFSGenerator() |
void |
set(int addr,
int i,
float value)
updates the Cas, setting the indexed value to the passed in Java float value.
|
float[] |
toArray(int addr) |
size
addToIndexes, checkType, getTypeIndexID, invalidTypeArg, noObjCreate, removeFromIndexes
protected org.apache.uima.cas.impl.FSGenerator<?> getFSGenerator()
getFSGenerator
in class TOP_Type
public float get(int addr, int i)
addr
- the low level CAS Feature Structure referencei
- the indexArrayFS.get(int)
public void set(int addr, int i, float value)
addr
- the low level CAS Feature Structure referencei
- the indexvalue
- the value to setArrayFS.set(int, FeatureStructure)
public void copyFromArray(int addr, float[] src, int srcOffset, int destOffset, int length)
addr
- the low level CAS Feature Structure reference to copy intosrc
- the array to copy fromsrcOffset
- the source offsetdestOffset
- the destination offsetlength
- the number of items to copyFloatArrayFS.copyFromArray(float[], int, int, int)
public void copyToArray(int addr, int srcOffset, float[] dest, int destOffset, int length)
addr
- the low level CAS Feature Structure reference to copy fromsrcOffset
- the source offsetdest
- the target to copy intodestOffset
- the destination offsetlength
- the number of items to copypublic float[] toArray(int addr)
addr
- the low level CAS Feature Structure reference to copy fromFloatArrayFS.toArray()
Copyright © 2006–2017 The Apache Software Foundation. All rights reserved.