public class CDMDataCompoundArray extends AbstractDataVariable implements DataCompoundArray
Modifier and Type | Field and Description |
---|---|
protected ArrayStructure |
array |
protected Variable |
cdmvar |
protected CDMDSP |
dsp |
protected DataCompound[] |
instances |
protected long |
nelems |
protected int[] |
shape |
sort, template
Constructor and Description |
---|
CDMDataCompoundArray(CDMDSP dsp,
DapVariable dv,
ArrayStructure array) |
Modifier and Type | Method and Description |
---|---|
long |
getCount()
Get the total number of elements in the variable array.
|
DataSort |
getElementSort()
Get the element sort; currently returns only DataSort.{SEQUENCE,STRUCTURE}
|
void |
read(List<Slice> slices,
DataCompound[] result)
For this method, the data will be a list of CDMDataStructure
or (eventually) CDMDataSequence objects.
|
DataCompound |
read(long index)
Provide a read of a single value at a given index in a variable.
|
getVariable
computesort, getSort, getTemplate
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getVariable
getSort, getTemplate
protected CDMDSP dsp
protected Variable cdmvar
protected DataCompound[] instances
protected ArrayStructure array
protected int[] shape
protected long nelems
public CDMDataCompoundArray(CDMDSP dsp, DapVariable dv, ArrayStructure array) throws DataException
DataException
public DataSort getElementSort()
DataCompoundArray
getElementSort
in interface DataCompoundArray
public long getCount()
DataCompoundArray
getCount
in interface DataCompoundArray
public DataCompound read(long index) throws DataException
DataCompoundArray
read
in interface DataCompoundArray
index
- of the value to read.DataException
public void read(List<Slice> slices, DataCompound[] result) throws DataException
read
in interface DataCompoundArray
slices
- slices constraining what is to be returned.result
- the array into which the values are returnedDataException
Copyright © 1999–2018 UCAR/Unidata. All rights reserved.