public class Nc4Cursor extends AbstractCursor
DataCursor.Scheme
Modifier and Type | Field and Description |
---|---|
static boolean |
DEBUG |
protected Nc4DSP.Nc4Pointer |
memory |
arrayindex, container, dsp, recordcount, recordindex, scheme, template
Constructor and Description |
---|
Nc4Cursor(DataCursor.Scheme scheme,
Nc4DSP dsp,
DapVariable template,
Nc4Cursor container) |
Nc4Cursor(Nc4Cursor c) |
Modifier and Type | Method and Description |
---|---|
protected void |
debug() |
static void |
errcheck(Nc4prototypes nc4,
int ret) |
protected java.lang.Object |
getatomicdata(DapType basetype,
long lcount,
long elemsize,
Nc4DSP.Nc4Pointer mem) |
long |
getElementSize() |
protected long |
getElementSize(Nc4Notes.TypeNotes ti) |
Index |
getIndex() |
Nc4DSP.Nc4Pointer |
getMemory() |
long |
getOffset() |
long |
getRecordCount() |
Nc4Notes.TypeNotes |
getVlenType(DapVariable v)
If the basetype is sequence (=> isVlen()),
then return the type of the first field of this sequence.
|
java.lang.Object |
read(Index index) |
java.lang.Object |
read(java.util.List<Slice> slices) |
protected java.lang.Object |
readAtomic(java.util.List<Slice> slices) |
protected java.lang.Object |
readAtomicScalar(Nc4Notes.VarNotes vi,
Nc4Notes.TypeNotes ti)
Read a top-level scalar atomic variable
|
protected java.lang.Object |
readAtomicVector(Nc4Notes.VarNotes vi,
Nc4Notes.TypeNotes ti,
long count,
java.util.List<Slice> slices) |
static void |
readcheck(Nc4prototypes nc4,
int ret) |
Nc4Cursor |
readField(int findex) |
Nc4Cursor |
readRecord(long recno) |
protected Nc4Cursor |
readSequence(Index index) |
protected Nc4Cursor |
readStructure(Index index) |
Nc4Cursor |
setMemory(Nc4DSP.Nc4Pointer p) |
fieldIndex, getContainer, getDSP, getRecordIndex, getScheme, getTemplate, isAtomic, isCompound, isCompoundArray, isField, isScalar, schemeFor, setContainer, setDSP, setIndex, setRecordCount, setRecordIndex, setScheme, setTemplate, toString
public static boolean DEBUG
protected Nc4DSP.Nc4Pointer memory
public Nc4Cursor(DataCursor.Scheme scheme, Nc4DSP dsp, DapVariable template, Nc4Cursor container) throws DapException
DapException
public Nc4Cursor(Nc4Cursor c)
public java.lang.Object read(Index index) throws DapException
read
in interface DataCursor
read
in class AbstractCursor
DapException
public java.lang.Object read(java.util.List<Slice> slices) throws DapException
read
in interface DataCursor
read
in class AbstractCursor
DapException
public Nc4Cursor readField(int findex) throws DapException
readField
in interface DataCursor
readField
in class AbstractCursor
DapException
public long getRecordCount()
getRecordCount
in interface DataCursor
getRecordCount
in class AbstractCursor
public Nc4Cursor readRecord(long recno) throws DapException
readRecord
in interface DataCursor
readRecord
in class AbstractCursor
DapException
public Index getIndex() throws DapException
getIndex
in interface DataCursor
getIndex
in class AbstractCursor
DapException
protected java.lang.Object readAtomic(java.util.List<Slice> slices) throws DapException
DapException
protected java.lang.Object readAtomicScalar(Nc4Notes.VarNotes vi, Nc4Notes.TypeNotes ti) throws DapException
vi
- ti
- DapException
protected java.lang.Object readAtomicVector(Nc4Notes.VarNotes vi, Nc4Notes.TypeNotes ti, long count, java.util.List<Slice> slices) throws DapException
DapException
protected Nc4Cursor readStructure(Index index) throws DapException
DapException
protected Nc4Cursor readSequence(Index index) throws DapException
DapException
public long getOffset()
public long getElementSize()
public Nc4DSP.Nc4Pointer getMemory()
public Nc4Cursor setMemory(Nc4DSP.Nc4Pointer p)
protected long getElementSize(Nc4Notes.TypeNotes ti)
protected java.lang.Object getatomicdata(DapType basetype, long lcount, long elemsize, Nc4DSP.Nc4Pointer mem)
public static void errcheck(Nc4prototypes nc4, int ret) throws DapException
DapException
public static void readcheck(Nc4prototypes nc4, int ret) throws DapException
DapException
public Nc4Notes.TypeNotes getVlenType(DapVariable v)
protected void debug()