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