public class CDMArraySequence extends ArraySequence implements CDMArray
Modifier and Type | Class and Description |
---|---|
static class |
CDMArraySequence.SDI |
ArrayStructure.ArrayStructureIterator
Modifier and Type | Field and Description |
---|---|
protected long |
bytesize |
protected D4DataSequence |
d4data |
protected D4DSP |
dsp |
protected long |
nmembers |
protected long |
nrecords |
protected Array[][] |
records
As mentioned above, we store an array of
arrays of CDMArrays, where each CDMArray innstance
represents a single record in some D4DataSequence object.
|
protected CDMDataset |
root |
protected DapVariable |
template |
iter
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)
Get member data of any type for a specific record as an Array.
|
ArraySequence |
getArraySequence(StructureMembers.Member m) |
protected CDMArrayAtomic |
getAtomicArray(int index,
StructureMembers.Member m) |
DapType |
getBaseType() |
long |
getByteSize() |
DSP |
getDSP() |
AtomicType |
getPrimitiveType() |
CDMDataset |
getRoot() |
long |
getSizeBytes()
Get the total number of bytes in the array.
|
StructureData |
getStructureData(int index)
Get the index'th StructureData(StructureDataA) object
We need instances of StructureData to give to the user.
|
int |
getStructureDataCount() |
DapVariable |
getTemplate() |
protected StructureData |
makeStructureData(ArrayStructure as,
int index) |
protected Array |
memberArray(int recno,
int memberindex) |
java.lang.String |
toString() |
extractMemberArray, getElementType, getStructureDataIterator, showInternal
convertScalarDouble, convertScalarFloat, convertScalarInt, convertScalarLong, copyBytes, copyChars, copyDoubles, copyFloats, copyFrom1DJavaArray, copyInts, copyLongs, copyObjects, copySequences, copyShorts, copyStructures, copyTo1DJavaArray, createView, findMember, getArrayObject, getArraySequence, getArrayStructure, getBoolean, getBoolean, getByte, getByte, getChar, getChar, getDouble, getDouble, getFloat, getFloat, getInt, getInt, getJavaArrayByte, getJavaArrayChar, getJavaArrayDouble, getJavaArrayFloat, getJavaArrayInt, getJavaArrayLong, getJavaArrayShort, getJavaArrayString, getLong, getLong, getMembers, getObject, getObject, getScalarByte, getScalarChar, getScalarDouble, getScalarFloat, getScalarInt, getScalarLong, getScalarObject, getScalarShort, getScalarString, getScalarStructure, getShort, getShort, getStorage, getStructureData, getStructureMemberNames, getStructureMembers, getStructureSize, sectionNoReduce, setBoolean, setBoolean, setByte, setByte, setChar, setChar, setDouble, setDouble, setFloat, setFloat, setInt, setInt, setLong, setLong, setMemberArray, setObject, setObject, setShort, setShort, showInternalMembers
arraycopy, copyTo1DJavaArray, copyToNDJavaArray, factory, factory, factory, factory, factory, factory, factoryConstant, flip, get1DJavaArray, getDataAsByteBuffer, getDataAsByteBuffer, getDataAsByteBuffer, getDataType, getIndex, getIndexIterator, getIndexIteratorFast, getIndexPrivate, getRangeIterator, getRank, getShape, getSize, 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 D4DataSequence d4data
protected long nmembers
protected Array[][] records
protected long nrecords
public AtomicType getPrimitiveType()
getPrimitiveType
in interface CDMArray
public DapType getBaseType()
getBaseType
in interface CDMArray
public CDMDataset getRoot()
public DapVariable getTemplate()
getTemplate
in interface CDMArray
public long getByteSize()
getByteSize
in interface CDMArray
public java.lang.String toString()
toString
in class ArraySequence
public long computeTotalSize()
public int getStructureDataCount()
getStructureDataCount
in class ArraySequence
public long getSizeBytes()
Array
getSizeBytes
in class ArraySequence
protected StructureData makeStructureData(ArrayStructure as, int index)
makeStructureData
in class ArraySequence
public StructureData getStructureData(int index)
getStructureData
in class ArrayStructure
index
- public ArraySequence getArraySequence(StructureMembers.Member m)
public Array copy()
ArrayStructure
copy
in class ArrayStructure
public Array getArray(int recno, StructureMembers.Member m)
getArray
in class ArrayStructure
recno
- get data from the recnum-th StructureData of the ArrayStructure.
Must be less than getSize();m
- get data from this StructureMembers.Member.protected CDMArrayAtomic getAtomicArray(int index, StructureMembers.Member m)
protected Array memberArray(int recno, int memberindex)