public class D4Cursor extends AbstractCursor
DataCursor.Scheme| Modifier and Type | Field and Description |
|---|---|
protected long[] |
bytestrings |
protected D4Cursor[] |
elements |
protected D4Cursor[] |
fieldcursors |
protected long |
offset |
protected java.util.List<D4Cursor> |
records |
arrayindex, container, dsp, recordcount, recordindex, scheme, template| Constructor and Description |
|---|
D4Cursor(D4Cursor c)
Effectively a clone of c
|
D4Cursor(DataCursor.Scheme scheme,
D4DSP dsp,
DapNode template,
D4Cursor container) |
| Modifier and Type | Method and Description |
|---|---|
D4Cursor |
addField(int m,
D4Cursor field) |
D4Cursor |
addRecord(D4Cursor rec) |
long |
getElementSize(DapVariable v) |
static long |
getLength(java.nio.ByteBuffer b) |
long |
getRecordCount() |
java.lang.Object |
read(Index index) |
java.lang.Object |
read(java.util.List<Slice> slices) |
protected java.lang.Object |
readAs(DapVariable atomvar,
DapType basetype,
java.util.List<Slice> slices)
Allow specification of basetype to use; used for enumerations
|
protected java.lang.Object |
readAtomic(java.util.List<Slice> slices) |
protected void |
readContig(java.util.List<Slice> slices,
DapType basetype,
long count,
Odometer odom,
java.lang.Object result) |
D4Cursor |
readField(int findex) |
protected java.lang.Object |
readOdom(java.util.List<Slice> slices,
DapType basetype,
Odometer odom,
java.lang.Object result) |
D4Cursor |
readRecord(long i) |
D4Cursor |
readSequence(Index index) |
protected D4Cursor |
readStructure(Index index) |
D4Cursor |
setByteStringOffsets(long total,
long[] positions) |
D4Cursor |
setElements(D4Cursor[] instances) |
D4Cursor |
setOffset(long pos) |
fieldIndex, getContainer, getDSP, getIndex, getRecordIndex, getScheme, getTemplate, isAtomic, isCompound, isCompoundArray, isField, isScalar, schemeFor, setContainer, setDSP, setIndex, setRecordCount, setRecordIndex, setScheme, setTemplate, toStringprotected long offset
protected long[] bytestrings
protected D4Cursor[] elements
protected D4Cursor[] fieldcursors
protected java.util.List<D4Cursor> records
public D4Cursor(DataCursor.Scheme scheme, D4DSP dsp, DapNode template, D4Cursor container)
public D4Cursor(D4Cursor c)
c - cursor to clonepublic 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 D4Cursor readField(int findex) throws DapException
readField in interface DataCursorreadField in class AbstractCursorDapExceptionpublic D4Cursor readRecord(long i)
readRecord in interface DataCursorreadRecord in class AbstractCursorpublic long getRecordCount()
getRecordCount in interface DataCursorgetRecordCount in class AbstractCursorprotected java.lang.Object readAtomic(java.util.List<Slice> slices) throws DapException
DapExceptionprotected java.lang.Object readAs(DapVariable atomvar, DapType basetype, java.util.List<Slice> slices) throws DapException
atomvar - basetype - slices - DapExceptionprotected void readContig(java.util.List<Slice> slices, DapType basetype, long count, Odometer odom, java.lang.Object result) throws DapException
DapExceptionprotected java.lang.Object readOdom(java.util.List<Slice> slices, DapType basetype, Odometer odom, java.lang.Object result) throws DapException
DapExceptionprotected D4Cursor readStructure(Index index) throws DapException
DapExceptionpublic D4Cursor readSequence(Index index) throws DapException
DapExceptionpublic D4Cursor setOffset(long pos)
public D4Cursor setByteStringOffsets(long total, long[] positions)
public long getElementSize(DapVariable v)
public static long getLength(java.nio.ByteBuffer b)