public class D4Cursor extends AbstractCursor
| 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(dap4.core.data.DataCursor.Scheme scheme,
D4DSP dsp,
dap4.core.dmr.DapNode template,
D4Cursor container) |
| Modifier and Type | Method and Description |
|---|---|
D4Cursor |
addField(int m,
D4Cursor field) |
D4Cursor |
addRecord(D4Cursor rec) |
long |
getElementSize(dap4.core.dmr.DapVariable v) |
static long |
getLength(java.nio.ByteBuffer b) |
long |
getRecordCount() |
java.lang.Object |
read(dap4.core.util.Index index) |
java.lang.Object |
read(java.util.List<dap4.core.util.Slice> slices) |
protected java.lang.Object |
readAs(dap4.core.dmr.DapVariable atomvar,
dap4.core.dmr.DapType basetype,
java.util.List<dap4.core.util.Slice> slices)
Allow specification of basetype to use; used for enumerations
|
protected java.lang.Object |
readAtomic(java.util.List<dap4.core.util.Slice> slices) |
protected void |
readContig(java.util.List<dap4.core.util.Slice> slices,
dap4.core.dmr.DapType basetype,
long count,
dap4.core.util.Odometer odom,
java.lang.Object result) |
D4Cursor |
readField(int findex) |
protected java.lang.Object |
readOdom(java.util.List<dap4.core.util.Slice> slices,
dap4.core.dmr.DapType basetype,
dap4.core.util.Odometer odom,
java.lang.Object result) |
D4Cursor |
readRecord(long i) |
D4Cursor |
readSequence(dap4.core.util.Index index) |
protected D4Cursor |
readStructure(dap4.core.util.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(dap4.core.data.DataCursor.Scheme scheme,
D4DSP dsp,
dap4.core.dmr.DapNode template,
D4Cursor container)
public D4Cursor(D4Cursor c)
c - cursor to clonepublic java.lang.Object read(dap4.core.util.Index index)
throws dap4.core.util.DapException
read in interface dap4.core.data.DataCursorread in class AbstractCursordap4.core.util.DapExceptionpublic java.lang.Object read(java.util.List<dap4.core.util.Slice> slices)
throws dap4.core.util.DapException
read in interface dap4.core.data.DataCursorread in class AbstractCursordap4.core.util.DapExceptionpublic D4Cursor readField(int findex) throws dap4.core.util.DapException
readField in interface dap4.core.data.DataCursorreadField in class AbstractCursordap4.core.util.DapExceptionpublic D4Cursor readRecord(long i)
readRecord in interface dap4.core.data.DataCursorreadRecord in class AbstractCursorpublic long getRecordCount()
getRecordCount in interface dap4.core.data.DataCursorgetRecordCount in class AbstractCursorprotected java.lang.Object readAtomic(java.util.List<dap4.core.util.Slice> slices)
throws dap4.core.util.DapException
dap4.core.util.DapExceptionprotected java.lang.Object readAs(dap4.core.dmr.DapVariable atomvar,
dap4.core.dmr.DapType basetype,
java.util.List<dap4.core.util.Slice> slices)
throws dap4.core.util.DapException
atomvar - basetype - slices - dap4.core.util.DapExceptionprotected void readContig(java.util.List<dap4.core.util.Slice> slices,
dap4.core.dmr.DapType basetype,
long count,
dap4.core.util.Odometer odom,
java.lang.Object result)
throws dap4.core.util.DapException
dap4.core.util.DapExceptionprotected java.lang.Object readOdom(java.util.List<dap4.core.util.Slice> slices,
dap4.core.dmr.DapType basetype,
dap4.core.util.Odometer odom,
java.lang.Object result)
throws dap4.core.util.DapException
dap4.core.util.DapExceptionprotected D4Cursor readStructure(dap4.core.util.Index index) throws dap4.core.util.DapException
dap4.core.util.DapExceptionpublic D4Cursor readSequence(dap4.core.util.Index index) throws dap4.core.util.DapException
dap4.core.util.DapExceptionpublic D4Cursor setOffset(long pos)
public D4Cursor setByteStringOffsets(long total, long[] positions)
public long getElementSize(dap4.core.dmr.DapVariable v)
public static long getLength(java.nio.ByteBuffer b)