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.
|
getVariablecomputesort, getSort, getTemplateclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetVariablegetSort, getTemplateprotected 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
DataExceptionpublic DataSort getElementSort()
DataCompoundArraygetElementSort in interface DataCompoundArraypublic long getCount()
DataCompoundArraygetCount in interface DataCompoundArraypublic DataCompound read(long index) throws DataException
DataCompoundArrayread in interface DataCompoundArrayindex - of the value to read.DataExceptionpublic void read(List<Slice> slices, DataCompound[] result) throws DataException
read in interface DataCompoundArrayslices - slices constraining what is to be returned.result - the array into which the values are returnedDataExceptionCopyright © 1999–2021 UCAR/Unidata. All rights reserved.