Package dap4.core.data
Interface DataCursor
-
public interface DataCursorFor data access, we adopt a cursor model. This comes from database technology where a cursor object is used to walk over the results of a database query. Here the cursor walks the underlying data and stores enough state to extract data depending on its sort. The cursor may (or may not) contain internal subclasses to track various kinds of state.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classDataCursor.Scheme
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description intfieldIndex(String name)DataCursorgetContainer()DSPgetDSP()IndexgetIndex()longgetRecordCount()longgetRecordIndex()DataCursor.SchemegetScheme()DapNodegetTemplate()booleanisField()booleanisScalar()Objectread(Index index)Objectread(List<Slice> slices)DataCursorreadField(int fieldindex)DataCursorreadRecord(long i)
-
-
-
Method Detail
-
getScheme
DataCursor.Scheme getScheme()
-
getDSP
DSP getDSP()
-
getTemplate
DapNode getTemplate()
-
getIndex
Index getIndex() throws DapException
- Throws:
DapException
-
isScalar
boolean isScalar()
-
isField
boolean isField()
-
getContainer
DataCursor getContainer()
-
read
Object read(List<Slice> slices) throws DapException
- Throws:
DapException
-
read
Object read(Index index) throws DapException
- Throws:
DapException
-
getRecordCount
long getRecordCount() throws DapException- Throws:
DapException
-
readRecord
DataCursor readRecord(long i) throws DapException
- Throws:
DapException
-
getRecordIndex
long getRecordIndex() throws DapException- Throws:
DapException
-
fieldIndex
int fieldIndex(String name) throws DapException
- Throws:
DapException
-
readField
DataCursor readField(int fieldindex) throws DapException
- Throws:
DapException
-
-