Package dap4.dap4lib
Class AbstractCursor
- java.lang.Object
-
- dap4.dap4lib.AbstractCursor
-
-
Field Summary
Fields Modifier and Type Field Description protected dap4.core.util.Indexarrayindexprotected AbstractCursorcontainerprotected dap4.core.data.DSPdspprotected longrecordcountprotected longrecordindexprotected dap4.core.data.DataCursor.Schemeschemeprotected dap4.core.dmr.DapNodetemplate
-
Constructor Summary
Constructors Constructor Description AbstractCursor(dap4.core.data.DataCursor.Scheme scheme, dap4.core.data.DSP dsp, dap4.core.dmr.DapNode template, AbstractCursor container)AbstractCursor(AbstractCursor orig)
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description intfieldIndex(String name)AbstractCursorgetContainer()dap4.core.data.DSPgetDSP()dap4.core.util.IndexgetIndex()longgetRecordCount()longgetRecordIndex()dap4.core.data.DataCursor.SchemegetScheme()dap4.core.dmr.DapNodegetTemplate()booleanisAtomic()booleanisCompound()booleanisCompoundArray()booleanisField()booleanisScalar()abstract Objectread(dap4.core.util.Index index)abstract Objectread(List<dap4.core.util.Slice> slices)abstract AbstractCursorreadField(int fieldindex)abstract AbstractCursorreadRecord(long i)static dap4.core.data.DataCursor.SchemeschemeFor(dap4.core.dmr.DapVariable field)AbstractCursorsetContainer(AbstractCursor container)AbstractCursorsetDSP(dap4.core.data.DSP dsp)AbstractCursorsetIndex(dap4.core.util.Index index)AbstractCursorsetRecordCount(long count)AbstractCursorsetRecordIndex(long index)AbstractCursorsetScheme(dap4.core.data.DataCursor.Scheme scheme)AbstractCursorsetTemplate(dap4.core.dmr.DapNode template)StringtoString()
-
-
-
Field Detail
-
scheme
protected dap4.core.data.DataCursor.Scheme scheme
-
dsp
protected dap4.core.data.DSP dsp
-
template
protected dap4.core.dmr.DapNode template
-
arrayindex
protected dap4.core.util.Index arrayindex
-
recordindex
protected long recordindex
-
container
protected AbstractCursor container
-
recordcount
protected long recordcount
-
-
Constructor Detail
-
AbstractCursor
public AbstractCursor(dap4.core.data.DataCursor.Scheme scheme, dap4.core.data.DSP dsp, dap4.core.dmr.DapNode template, AbstractCursor container)
-
AbstractCursor
public AbstractCursor(AbstractCursor orig)
-
-
Method Detail
-
read
public abstract Object read(List<dap4.core.util.Slice> slices) throws dap4.core.util.DapException
- Specified by:
readin interfacedap4.core.data.DataCursor- Throws:
dap4.core.util.DapException
-
read
public abstract Object read(dap4.core.util.Index index) throws dap4.core.util.DapException
- Specified by:
readin interfacedap4.core.data.DataCursor- Throws:
dap4.core.util.DapException
-
readRecord
public abstract AbstractCursor readRecord(long i) throws dap4.core.util.DapException
- Specified by:
readRecordin interfacedap4.core.data.DataCursor- Throws:
dap4.core.util.DapException
-
readField
public abstract AbstractCursor readField(int fieldindex) throws dap4.core.util.DapException
- Specified by:
readFieldin interfacedap4.core.data.DataCursor- Throws:
dap4.core.util.DapException
-
fieldIndex
public int fieldIndex(String name) throws dap4.core.util.DapException
- Specified by:
fieldIndexin interfacedap4.core.data.DataCursor- Throws:
dap4.core.util.DapException
-
getScheme
public dap4.core.data.DataCursor.Scheme getScheme()
- Specified by:
getSchemein interfacedap4.core.data.DataCursor
-
getDSP
public dap4.core.data.DSP getDSP()
- Specified by:
getDSPin interfacedap4.core.data.DataCursor
-
getTemplate
public dap4.core.dmr.DapNode getTemplate()
- Specified by:
getTemplatein interfacedap4.core.data.DataCursor
-
getIndex
public dap4.core.util.Index getIndex() throws dap4.core.util.DapException- Specified by:
getIndexin interfacedap4.core.data.DataCursor- Throws:
dap4.core.util.DapException
-
getRecordIndex
public long getRecordIndex() throws dap4.core.util.DapException- Specified by:
getRecordIndexin interfacedap4.core.data.DataCursor- Throws:
dap4.core.util.DapException
-
getRecordCount
public long getRecordCount() throws dap4.core.util.DapException- Specified by:
getRecordCountin interfacedap4.core.data.DataCursor- Throws:
dap4.core.util.DapException
-
getContainer
public AbstractCursor getContainer()
- Specified by:
getContainerin interfacedap4.core.data.DataCursor
-
isScalar
public boolean isScalar()
- Specified by:
isScalarin interfacedap4.core.data.DataCursor
-
isField
public boolean isField()
- Specified by:
isFieldin interfacedap4.core.data.DataCursor
-
isAtomic
public boolean isAtomic()
-
isCompound
public boolean isCompound()
-
isCompoundArray
public boolean isCompoundArray()
-
setIndex
public AbstractCursor setIndex(dap4.core.util.Index index)
-
setRecordIndex
public AbstractCursor setRecordIndex(long index)
-
setRecordCount
public AbstractCursor setRecordCount(long count)
-
setContainer
public AbstractCursor setContainer(AbstractCursor container)
-
setScheme
public AbstractCursor setScheme(dap4.core.data.DataCursor.Scheme scheme)
-
setDSP
public AbstractCursor setDSP(dap4.core.data.DSP dsp)
-
setTemplate
public AbstractCursor setTemplate(dap4.core.dmr.DapNode template)
-
schemeFor
public static dap4.core.data.DataCursor.Scheme schemeFor(dap4.core.dmr.DapVariable field)
-
-