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.
|
getVariable
computesort, getSort, getTemplate
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getVariable
getSort, getTemplate
protected CDMDSP dsp
protected long product
protected DapType basetype
protected AtomicType atomtype
protected Array data
public CDMDataAtomic(CDMDSP dsp, DapAtomicVariable template, Array array) throws DataException
DataException
public DapType getType()
DataAtomic
getType
in interface DataAtomic
public long getCount()
DataAtomic
getCount
in interface DataAtomic
public long getElementSize()
DataAtomic
getElementSize
in interface DataAtomic
public void read(List<Slice> slices, Object data, long offset) throws DataException
DataAtomic
read
in interface DataAtomic
slices
- the set of slices defining which values to returndata
- the array into which the values are returnedoffset
- the offset into data into which to readDataException
public Object read(long index) throws DataException
DataAtomic
read
in interface DataAtomic
DataException
protected DapSort computesort(Array array) throws DataException
DataException
Copyright © 1999–2016 UCAR/Unidata. All rights reserved.