public class CDMDataAtomic extends AbstractDataVariable implements DataAtomic
| Modifier and Type | Field and Description |
|---|---|
protected AtomicType |
atomtype |
protected DapType |
basetype |
protected Array |
data |
protected CDMDSP |
dsp |
protected long |
product |
sort, template| Constructor and Description |
|---|
CDMDataAtomic(CDMDSP dsp,
DapAtomicVariable template,
Array array) |
| Modifier and Type | Method and Description |
|---|---|
protected DapSort |
computesort(Array array) |
long |
getCount()
Get the total number of elements in the atomic array.
|
long |
getElementSize()
Get the s ize of a single element in bytes; 0 => undefined
|
DapType |
getType()
Get the type of this atomic variable
|
void |
read(List<Slice> slices,
Object data,
long offset)
Read of multiple values at once.
|
Object |
read(long index)
Provide a read of a single value at a given offset in a (possibly dimensioned)
atomic valued variable.
|
getVariablecomputesort, getSort, getTemplateclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetVariablegetSort, getTemplateprotected CDMDSP dsp
protected long product
protected DapType basetype
protected AtomicType atomtype
protected Array data
public CDMDataAtomic(CDMDSP dsp, DapAtomicVariable template, Array array) throws DataException
DataExceptionpublic DapType getType()
DataAtomicgetType in interface DataAtomicpublic long getCount()
DataAtomicgetCount in interface DataAtomicpublic long getElementSize()
DataAtomicgetElementSize in interface DataAtomicpublic void read(List<Slice> slices, Object data, long offset) throws DataException
DataAtomicread in interface DataAtomicslices - the set of slices defining which values to returndata - the array into which the values are returnedoffset - the offset into data into which to readDataExceptionpublic Object read(long index) throws DataException
DataAtomicread in interface DataAtomicDataExceptionprotected DapSort computesort(Array array) throws DataException
DataExceptionCopyright © 1999–2021 UCAR/Unidata. All rights reserved.