public class D4DataAtomic extends D4DataVariable implements DataAtomic
| Modifier and Type | Field and Description |
|---|---|
protected AtomicType |
atomictype |
protected DapType |
basetype |
protected int[] |
bytestrings |
protected boolean |
isbytestring |
protected boolean |
isscalar |
protected long |
product |
protected long |
totalbytestringsize |
protected long |
varelementsize |
protected long |
varoffset |
dspsort, template| Constructor and Description |
|---|
D4DataAtomic(D4DSP dsp,
DapAtomicVariable dap,
int offset) |
| Modifier and Type | Method and Description |
|---|---|
protected Object |
extractObject(DapType basetype,
ByteBuffer dataset,
long index)
Extract, as an object, value from a (presumably)
atomic typed array of values; dataset position
is presumed correct.
|
protected void |
extractObjectVector(DapType basetype,
ByteBuffer dataset,
long start,
long count,
Object vector,
long offset)
Vector version of extractObject().
|
long |
getCount() |
long |
getElementSize() |
DapType |
getType() |
void |
read(List<Slice> slices,
Object data,
long offset) |
Object |
read(long index) |
protected void |
setup(long index) |
getDSPgetVariablecomputesort, getSort, getTemplateclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetVariablegetSort, getTemplateprotected long product
protected DapType basetype
protected AtomicType atomictype
protected boolean isscalar
protected long varoffset
protected long varelementsize
protected boolean isbytestring
protected long totalbytestringsize
protected int[] bytestrings
public D4DataAtomic(D4DSP dsp, DapAtomicVariable dap, int offset) throws DataException
DataExceptionpublic DapType getType()
getType in interface DataAtomicpublic long getCount()
getCount in interface DataAtomicpublic long getElementSize()
getElementSize in interface DataAtomicpublic void read(List<Slice> slices, Object data, long offset) throws DataException
read in interface DataAtomicDataExceptionpublic Object read(long index) throws DataException
read in interface DataAtomicDataExceptionprotected void setup(long index)
protected Object extractObject(DapType basetype, ByteBuffer dataset, long index)
basetype - type of object to extractdataset - ByteBuffer containing databuffer; position assumed correctprotected void extractObjectVector(DapType basetype, ByteBuffer dataset, long start, long count, Object vector, long offset)
basetype - type of object to extract ; must not be Enumdataset - ByteBuffer containing databuffer; position assumed correctvector - count - Copyright © 1999–2015 UCAR/Unidata. All rights reserved.