public class CDMArrayStructure extends ArrayStructure implements CDMArray
ArrayStructure.ArrayStructureIterator
Modifier and Type | Field and Description |
---|---|
protected DapType |
basetype |
protected long |
bytesize |
protected D4DataCompoundArray |
d4data |
protected long |
dimsize |
protected D4DSP |
dsp |
protected Array[][] |
instances
Since we are using StructureData,
we do not actually need to keep the
D4DataStructure instances as such.
|
protected long |
nmembers |
protected AtomicType |
primitivetype |
protected CDMDataset |
root |
protected DapVariable |
template |
members, nelems, sdata
Modifier and Type | Method and Description |
---|---|
long |
computeTotalSize() |
Array |
copy()
DO NOT USE, throws UnsupportedOperationException
|
Array |
getArray(int recno,
StructureMembers.Member m)
Key interface method coming in from StructureDataA.
|
ArraySequence |
getArraySequence(StructureMembers.Member m) |
ArrayStructure |
getArrayStructure(int index,
StructureMembers.Member m)
Get member data of type array of Structure.
|
protected CDMArrayAtomic |
getAtomicArray(int index,
StructureMembers.Member m) |
DapType |
getBaseType() |
long |
getByteSize() |
DSP |
getDSP() |
byte[] |
getJavaArrayByte(int index,
StructureMembers.Member m)
Get member data of type byte as a 1D array.
|
char[] |
getJavaArrayChar(int index,
StructureMembers.Member m)
Get member data of type char as a 1D array.
|
double[] |
getJavaArrayDouble(int recnum,
StructureMembers.Member m)
Get member data of type double as a 1D array.
|
float[] |
getJavaArrayFloat(int index,
StructureMembers.Member m)
Get member data of type float as a 1D array.
|
int[] |
getJavaArrayInt(int index,
StructureMembers.Member m)
Get member data of type int as a 1D array.
|
long[] |
getJavaArrayLong(int index,
StructureMembers.Member m)
Get member data of type long as a 1D array.
|
java.nio.ByteBuffer[] |
getJavaArrayOpaque(int index,
StructureMembers.Member m) |
short[] |
getJavaArrayShort(int index,
StructureMembers.Member m)
Get member data of type short as a 1D array.
|
java.lang.String[] |
getJavaArrayString(int index,
StructureMembers.Member m)
Get member data of type String as a 1D array.
|
AtomicType |
getPrimitiveType() |
CDMDataset |
getRoot() |
byte |
getScalarByte(int index,
StructureMembers.Member m)
Get scalar member data of type byte.
|
char |
getScalarChar(int index,
StructureMembers.Member m)
Get scalar member data of type char.
|
double |
getScalarDouble(int index,
StructureMembers.Member m)
Get scalar member data of type double.
|
float |
getScalarFloat(int index,
StructureMembers.Member m)
Get scalar member data of type float.
|
int |
getScalarInt(int index,
StructureMembers.Member m)
Get scalar member data of type int.
|
long |
getScalarLong(int index,
StructureMembers.Member m)
Get scalar member data of type long.
|
short |
getScalarShort(int index,
StructureMembers.Member m)
Get scalar member data of type short.
|
java.lang.String |
getScalarString(int recnum,
StructureMembers.Member m)
Get member databuffer of type String or char.
|
StructureData |
getScalarStructure(int index,
StructureMembers.Member m)
Get member data of type Structure.
|
long |
getSize()
Get the total number of elements in the array.
|
StructureData |
getStructureData(int index)
Get the index'th StructureData(StructureDataA) object
We need instances of StructureData to give to the user.
|
DapVariable |
getTemplate() |
protected StructureData |
makeStructureData(ArrayStructure as,
int index) |
protected Array |
memberArray(int recno,
int memberindex) |
protected static int |
memberIndex(StructureMembers.Member m) |
java.lang.String |
toString() |
convertScalarDouble, convertScalarFloat, convertScalarInt, convertScalarLong, copyBytes, copyChars, copyDoubles, copyFloats, copyFrom1DJavaArray, copyInts, copyLongs, copyObjects, copySequences, copyShorts, copyStructures, copyTo1DJavaArray, createView, extractMemberArray, findMember, getArrayObject, getArraySequence, getBoolean, getBoolean, getByte, getByte, getChar, getChar, getDouble, getDouble, getElementType, getFloat, getFloat, getInt, getInt, getLong, getLong, getMembers, getObject, getObject, getScalarObject, getShort, getShort, getSizeBytes, getStorage, getStructureData, getStructureDataIterator, getStructureMemberNames, getStructureMembers, getStructureSize, sectionNoReduce, setBoolean, setBoolean, setByte, setByte, setChar, setChar, setDouble, setDouble, setFloat, setFloat, setInt, setInt, setLong, setLong, setMemberArray, setObject, setObject, setShort, setShort, showInternal, showInternalMembers
arraycopy, copyTo1DJavaArray, copyToNDJavaArray, factory, factory, factory, factory, factory, factory, factoryConstant, flip, get1DJavaArray, getDataAsByteBuffer, getDataAsByteBuffer, getDataAsByteBuffer, getDataType, getIndex, getIndexIterator, getIndexIteratorFast, getIndexPrivate, getRangeIterator, getRank, getShape, 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, setUnsigned, shapeToString, slice, transpose
protected CDMDataset root
protected D4DSP dsp
protected DapVariable template
protected long bytesize
protected DapType basetype
protected AtomicType primitivetype
protected D4DataCompoundArray d4data
protected long dimsize
protected long nmembers
protected Array[][] instances
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 long computeTotalSize()
public StructureData getStructureData(int index)
getStructureData
in class ArrayStructure
index
- public Array getArray(int recno, StructureMembers.Member m)
getArray
in class ArrayStructure
recno
- The instance # of the array of Structure instancesm
- The member of interest in the Structure instancepublic double getScalarDouble(int index, StructureMembers.Member m)
ArrayStructure
getScalarDouble
in class ArrayStructure
index
- get data from the recnum-th StructureData of the ArrayStructure. Must be less than getSize();m
- get data from this StructureMembers.Member. Must be of type double.public float getScalarFloat(int index, StructureMembers.Member m)
ArrayStructure
getScalarFloat
in class ArrayStructure
index
- get data from the recnum-th StructureData of the ArrayStructure. Must be less than getSize();m
- get data from this StructureMembers.Member. Must be of type float.public byte getScalarByte(int index, StructureMembers.Member m)
ArrayStructure
getScalarByte
in class ArrayStructure
index
- get data from the recnum-th StructureData of the ArrayStructure. Must be less than getSize();m
- get data from this StructureMembers.Member. Must be of type byte.public short getScalarShort(int index, StructureMembers.Member m)
ArrayStructure
getScalarShort
in class ArrayStructure
index
- get data from the recnum-th StructureData of the ArrayStructure. Must be less than getSize();m
- get data from this StructureMembers.Member. Must be of type short.public int getScalarInt(int index, StructureMembers.Member m)
ArrayStructure
getScalarInt
in class ArrayStructure
index
- get data from the recnum-th StructureData of the ArrayStructure. Must be less than getSize();m
- get data from this StructureMembers.Member. Must be of type int.public long getScalarLong(int index, StructureMembers.Member m)
ArrayStructure
getScalarLong
in class ArrayStructure
index
- get data from the recnum-th StructureData of the ArrayStructure. Must be less than getSize();m
- get data from this StructureMembers.Member. Must be of type long.public char getScalarChar(int index, StructureMembers.Member m)
ArrayStructure
getScalarChar
in class ArrayStructure
index
- get data from the recnum-th StructureData of the ArrayStructure. Must be less than getSize();m
- get data from this StructureMembers.Member. Must be of type char.public java.lang.String getScalarString(int recnum, StructureMembers.Member m)
getScalarString
in class ArrayStructure
recnum
- get databuffer from the recnum-th StructureData of the ArrayStructure. Must be less than getSize();m
- get databuffer from this StructureMembers.Member. Must be of type String or char.public double[] getJavaArrayDouble(int recnum, StructureMembers.Member m)
ArrayStructure
getJavaArrayDouble
in class ArrayStructure
recnum
- get data from the recnum-th StructureData of the ArrayStructure. Must be less than getSize();m
- get data from this StructureMembers.Member. Must be of type double.public float[] getJavaArrayFloat(int index, StructureMembers.Member m)
ArrayStructure
getJavaArrayFloat
in class ArrayStructure
index
- get data from the recnum-th StructureData of the ArrayStructure. Must be less than getSize();m
- get data from this StructureMembers.Member. Must be of type float.public byte[] getJavaArrayByte(int index, StructureMembers.Member m)
ArrayStructure
getJavaArrayByte
in class ArrayStructure
index
- get data from the recnum-th StructureData of the ArrayStructure. Must be less than getSize();m
- get data from this StructureMembers.Member. Must be of type byte.public short[] getJavaArrayShort(int index, StructureMembers.Member m)
ArrayStructure
getJavaArrayShort
in class ArrayStructure
index
- get data from the recnum-th StructureData of the ArrayStructure. Must be less than getSize();m
- get data from this StructureMembers.Member. Must be of type float.public int[] getJavaArrayInt(int index, StructureMembers.Member m)
ArrayStructure
getJavaArrayInt
in class ArrayStructure
index
- get data from the recnum-th StructureData of the ArrayStructure. Must be less than getSize();m
- get data from this StructureMembers.Member. Must be of type int.public long[] getJavaArrayLong(int index, StructureMembers.Member m)
ArrayStructure
getJavaArrayLong
in class ArrayStructure
index
- get data from the recnum-th StructureData of the ArrayStructure. Must be less than getSize();m
- get data from this StructureMembers.Member. Must be of type long.public char[] getJavaArrayChar(int index, StructureMembers.Member m)
ArrayStructure
getJavaArrayChar
in class ArrayStructure
index
- get data from the recnum-th StructureData of the ArrayStructure. Must be less than getSize();m
- get data from this StructureMembers.Member. Must be of type char.public java.lang.String[] getJavaArrayString(int index, StructureMembers.Member m)
ArrayStructure
getJavaArrayString
in class ArrayStructure
index
- get data from the recnum-th StructureData of the ArrayStructure. Must be less than getSize();m
- get data from this StructureMembers.Member. Must be of type String.public java.nio.ByteBuffer[] getJavaArrayOpaque(int index, StructureMembers.Member m)
public StructureData getScalarStructure(int index, StructureMembers.Member m)
ArrayStructure
getScalarStructure
in class ArrayStructure
index
- get data from the recnum-th StructureData of the ArrayStructure. Must be less than getSize();m
- get data from this StructureMembers.Member. Must be of type Structure.public ArrayStructure getArrayStructure(int index, StructureMembers.Member m)
ArrayStructure
getArrayStructure
in class ArrayStructure
index
- get data from the recnum-th StructureData of the ArrayStructure. Must be less than getSize();m
- get data from this StructureMembers.Member. Must be of type Structure.public ArraySequence getArraySequence(StructureMembers.Member m)
public Array copy()
ArrayStructure
copy
in class ArrayStructure
protected StructureData makeStructureData(ArrayStructure as, int index)
makeStructureData
in class ArrayStructure
protected Array memberArray(int recno, int memberindex)
protected static int memberIndex(StructureMembers.Member m)
protected CDMArrayAtomic getAtomicArray(int index, StructureMembers.Member m)