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, transpose
protected 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 CDMArray
public long getByteSize()
getByteSize
in interface CDMArray
public DapType getBaseType()
getBaseType
in interface CDMArray
public AtomicType getPrimitiveType()
getPrimitiveType
in interface CDMArray
public long getSize()
Array
public D4DataAtomic getData()
protected long computeTotalSize()
public java.lang.Class getElementType()
Array
getElementType
in class Array
public 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 Array
index
- of element to getindex
cast to char if necessary.public java.lang.Object getObject(int index)
public double getDouble(Index idx)
Array
public float getFloat(Index idx)
Array
public long getLong(Index idx)
Array
public int getInt(Index idx)
Array
public short getShort(Index idx)
Array
public byte getByte(Index idx)
Array
public char getChar(Index idx)
Array
public boolean getBoolean(Index idx)
Array
getBoolean
in class Array
idx
- Index with current element setindex
cast to boolean if necessary.public java.lang.Object getObject(Index idx)
Array
public void setDouble(Index ima, double value)
Array
public void setFloat(Index ima, float value)
Array
public void setLong(Index ima, long value)
Array
public void setInt(Index ima, int value)
Array
public void setShort(Index ima, short value)
Array
public void setByte(Index ima, byte value)
Array
public void setChar(Index ima, char value)
Array
public void setBoolean(Index ima, boolean value)
Array
setBoolean
in class Array
ima
- Index with current element setvalue
- the new value; cast to underlying data type if necessary.public void setObject(Index ima, java.lang.Object value)
Array
public void setBoolean(int elem, boolean value)
setBoolean
in class Array
public void setObject(int elem, java.lang.Object value)
public java.lang.Object getStorage()
Array
getStorage
in class Array
protected void copyTo1DJavaArray(IndexIterator indexIterator, java.lang.Object o)
copyTo1DJavaArray
in class Array
protected void copyFrom1DJavaArray(IndexIterator iter, java.lang.Object javaArray)
copyFrom1DJavaArray
in class Array
protected Array createView(Index index)
Array
createView
in class Array
index
- use this Index