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(DapNetcdf 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(DapNetcdf 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, toStringpublic static boolean DEBUG
protected Nc4DSP.Nc4Pointer memory
public Nc4Cursor(DataCursor.Scheme scheme, Nc4DSP dsp, DapVariable template, Nc4Cursor container) throws DapException
DapExceptionpublic Nc4Cursor(Nc4Cursor c)
public java.lang.Object read(Index index) throws DapException
read in interface DataCursorread in class AbstractCursorDapExceptionpublic java.lang.Object read(java.util.List<Slice> slices) throws DapException
read in interface DataCursorread in class AbstractCursorDapExceptionpublic Nc4Cursor readField(int findex) throws DapException
readField in interface DataCursorreadField in class AbstractCursorDapExceptionpublic long getRecordCount()
getRecordCount in interface DataCursorgetRecordCount in class AbstractCursorpublic Nc4Cursor readRecord(long recno) throws DapException
readRecord in interface DataCursorreadRecord in class AbstractCursorDapExceptionpublic Index getIndex() throws DapException
getIndex in interface DataCursorgetIndex in class AbstractCursorDapExceptionprotected java.lang.Object readAtomic(java.util.List<Slice> slices) throws DapException
DapExceptionprotected java.lang.Object readAtomicScalar(Nc4Notes.VarNotes vi, Nc4Notes.TypeNotes ti) throws DapException
vi - ti - DapExceptionprotected java.lang.Object readAtomicVector(Nc4Notes.VarNotes vi, Nc4Notes.TypeNotes ti, long count, java.util.List<Slice> slices) throws DapException
DapExceptionprotected Nc4Cursor readStructure(Index index) throws DapException
DapExceptionprotected Nc4Cursor readSequence(Index index) throws DapException
DapExceptionpublic 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(DapNetcdf nc4, int ret) throws DapException
DapExceptionpublic static void readcheck(DapNetcdf nc4, int ret) throws DapException
DapExceptionpublic Nc4Notes.TypeNotes getVlenType(DapVariable v)
protected void debug()