| Modifier and Type | Field and Description |
|---|---|
protected DapType |
basetype |
protected long |
bytesize |
protected int[] |
bytestrings |
protected D4DataAtomic |
d4data |
protected long |
dimsize |
protected D4DSP |
dsp |
protected int |
elementsize |
protected boolean |
isbytestring |
protected AtomicType |
primitivetype |
protected CDMDataset |
root |
protected DapVariable |
template |
protected int |
totalbytestringsize |
protected long |
totalsize |
| Modifier and Type | Method and Description |
|---|---|
protected long |
computeTotalSize() |
protected void |
copyFrom1DJavaArray(IndexIterator iter,
java.lang.Object javaArray) |
protected void |
copyTo1DJavaArray(IndexIterator indexIterator,
java.lang.Object o) |
protected Array |
createView(Index index)
create new Array with given Index and the same backing store
|
DapType |
getBaseType() |
boolean |
getBoolean(Index idx)
Get the array element at the current element of ima, as a boolean.
|
boolean |
getBoolean(int index)
Get the array element at a specific index as a boolean
|
byte |
getByte(Index idx)
Get the array element at the current element of ima, as a byte.
|
byte |
getByte(int index)
Get the array element at a specific index as a byte
|
long |
getByteSize() |
char |
getChar(Index idx)
Get the array element at the current element of ima, as a char.
|
char |
getChar(int index)
Get the array element at a specific index as a char
|
D4DataAtomic |
getData() |
double |
getDouble(Index idx)
Get the array element at the current element of ima, as a double.
|
double |
getDouble(int index)
Get the array element at a specific index as a double
|
DSP |
getDSP() |
java.lang.Class |
getElementType()
Get the element class type of this Array
|
float |
getFloat(Index idx)
Get the array element at the current element of ima, as a float.
|
float |
getFloat(int index)
Get the array element at a specific index as a float
converting as needed.
|
int |
getInt(Index idx)
Get the array element at the current element of ima, as a int.
|
int |
getInt(int index)
Get the array element at a specific index as a integer
|
long |
getLong(Index idx)
Get the array element at the current element of ima, as a long.
|
long |
getLong(int index)
Get the array element at a specific index as a long
|
java.lang.Object |
getObject(Index idx)
Get the array element at index as an Object.
|
java.lang.Object |
getObject(int index)
Get the array element at a specific index as an Object
|
AtomicType |
getPrimitiveType() |
CDMDataset |
getRoot() |
short |
getShort(Index idx)
Get the array element at the current element of ima, as a short.
|
short |
getShort(int index)
Get the array element at a specific index as a short
|
long |
getSize()
Get the total number of elements in the array.
|
java.lang.Object |
getStorage()
Get underlying primitive array storage.
|
DapVariable |
getTemplate() |
void |
setBoolean(Index ima,
boolean value)
Set the array element at the current element of ima.
|
void |
setBoolean(int elem,
boolean value) |
void |
setByte(Index ima,
byte value)
Set the array element at the current element of ima.
|
void |
setByte(int elem,
byte value) |
void |
setChar(Index ima,
char value)
Set the array element at the current element of ima.
|
void |
setChar(int elem,
char value) |
void |
setDouble(Index ima,
double value)
Set the array element at the current element of ima.
|
void |
setDouble(int elem,
double value) |
void |
setFloat(Index ima,
float value)
Set the array element at the current element of ima.
|
void |
setFloat(int elem,
float value) |
void |
setInt(Index ima,
int value)
Set the array element at the current element of ima.
|
void |
setInt(int elem,
int value) |
void |
setLong(Index ima,
long value)
Set the array element at the current element of ima.
|
void |
setLong(int elem,
long value) |
void |
setObject(Index ima,
java.lang.Object value)
Set the array element at index to the specified value.
|
void |
setObject(int elem,
java.lang.Object value) |
void |
setShort(Index ima,
short value)
Set the array element at the current element of ima.
|
void |
setShort(int elem,
short value) |
java.lang.String |
toString() |
arraycopy, copy, copyTo1DJavaArray, copyToNDJavaArray, factory, factory, factory, factory, factory, factory, factoryConstant, flip, get1DJavaArray, getDataAsByteBuffer, getDataAsByteBuffer, getDataAsByteBuffer, getDataType, getIndex, getIndexIterator, getIndexIteratorFast, getIndexPrivate, getRangeIterator, getRank, getShape, getSizeBytes, hasNext, isConstant, isUnsigned, makeArray, makeArray, makeArray, makeArray, makeArrayRankPlusOne, next, nextBoolean, nextByte, nextChar, nextDouble, nextFloat, nextInt, nextLong, nextShort, permute, reduce, reduce, resetLocalIterator, reshape, reshapeNoCopy, section, section, section, sectionNoReduce, sectionNoReduce, setUnsigned, shapeToString, slice, transposeprotected CDMDataset root
protected D4DSP dsp
protected DapVariable template
protected long bytesize
protected DapType basetype
protected AtomicType primitivetype
protected D4DataAtomic d4data
protected int elementsize
protected long dimsize
protected long totalsize
protected boolean isbytestring
protected int[] bytestrings
protected int totalbytestringsize
public CDMDataset getRoot()
public DapVariable getTemplate()
getTemplate in interface CDMArraypublic long getByteSize()
getByteSize in interface CDMArraypublic DapType getBaseType()
getBaseType in interface CDMArraypublic AtomicType getPrimitiveType()
getPrimitiveType in interface CDMArraypublic long getSize()
Arraypublic D4DataAtomic getData()
protected long computeTotalSize()
public java.lang.Class getElementType()
ArraygetElementType in class Arraypublic double getDouble(int index)
public float getFloat(int index)
public long getLong(int index)
public int getInt(int index)
public short getShort(int index)
public byte getByte(int index)
public char getChar(int index)
public boolean getBoolean(int index)
getBoolean in class Arrayindex - of element to getindex cast to char if necessary.public java.lang.Object getObject(int index)
public double getDouble(Index idx)
Arraypublic float getFloat(Index idx)
Arraypublic long getLong(Index idx)
Arraypublic int getInt(Index idx)
Arraypublic short getShort(Index idx)
Arraypublic byte getByte(Index idx)
Arraypublic char getChar(Index idx)
Arraypublic boolean getBoolean(Index idx)
ArraygetBoolean in class Arrayidx - Index with current element setindex cast to boolean if necessary.public java.lang.Object getObject(Index idx)
Arraypublic void setDouble(Index ima, double value)
Arraypublic void setFloat(Index ima, float value)
Arraypublic void setLong(Index ima, long value)
Arraypublic void setInt(Index ima, int value)
Arraypublic void setShort(Index ima, short value)
Arraypublic void setByte(Index ima, byte value)
Arraypublic void setChar(Index ima, char value)
Arraypublic void setBoolean(Index ima, boolean value)
ArraysetBoolean in class Arrayima - Index with current element setvalue - the new value; cast to underlying data type if necessary.public void setObject(Index ima, java.lang.Object value)
Arraypublic void setBoolean(int elem,
boolean value)
setBoolean in class Arraypublic void setObject(int elem,
java.lang.Object value)
public java.lang.Object getStorage()
ArraygetStorage in class Arrayprotected void copyTo1DJavaArray(IndexIterator indexIterator, java.lang.Object o)
copyTo1DJavaArray in class Arrayprotected void copyFrom1DJavaArray(IndexIterator iter, java.lang.Object javaArray)
copyFrom1DJavaArray in class Arrayprotected Array createView(Index index)
ArraycreateView in class Arrayindex - use this Index