Package dap4.dap4lib

Class AbstractCursor

  • All Implemented Interfaces:
    dap4.core.data.DataCursor
    Direct Known Subclasses:
    D4Cursor, Nc4Cursor

    public abstract class AbstractCursor
    extends Object
    implements dap4.core.data.DataCursor
    • 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
      • 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)
    • Method Detail

      • read

        public abstract Object read​(List<dap4.core.util.Slice> slices)
                             throws dap4.core.util.DapException
        Specified by:
        read in interface dap4.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:
        read in interface dap4.core.data.DataCursor
        Throws:
        dap4.core.util.DapException
      • readRecord

        public abstract AbstractCursor readRecord​(long i)
                                           throws dap4.core.util.DapException
        Specified by:
        readRecord in interface dap4.core.data.DataCursor
        Throws:
        dap4.core.util.DapException
      • readField

        public abstract AbstractCursor readField​(int fieldindex)
                                          throws dap4.core.util.DapException
        Specified by:
        readField in interface dap4.core.data.DataCursor
        Throws:
        dap4.core.util.DapException
      • fieldIndex

        public int fieldIndex​(String name)
                       throws dap4.core.util.DapException
        Specified by:
        fieldIndex in interface dap4.core.data.DataCursor
        Throws:
        dap4.core.util.DapException
      • getScheme

        public dap4.core.data.DataCursor.Scheme getScheme()
        Specified by:
        getScheme in interface dap4.core.data.DataCursor
      • getDSP

        public dap4.core.data.DSP getDSP()
        Specified by:
        getDSP in interface dap4.core.data.DataCursor
      • getTemplate

        public dap4.core.dmr.DapNode getTemplate()
        Specified by:
        getTemplate in interface dap4.core.data.DataCursor
      • getIndex

        public dap4.core.util.Index getIndex()
                                      throws dap4.core.util.DapException
        Specified by:
        getIndex in interface dap4.core.data.DataCursor
        Throws:
        dap4.core.util.DapException
      • getRecordIndex

        public long getRecordIndex()
                            throws dap4.core.util.DapException
        Specified by:
        getRecordIndex in interface dap4.core.data.DataCursor
        Throws:
        dap4.core.util.DapException
      • getRecordCount

        public long getRecordCount()
                            throws dap4.core.util.DapException
        Specified by:
        getRecordCount in interface dap4.core.data.DataCursor
        Throws:
        dap4.core.util.DapException
      • getContainer

        public AbstractCursor getContainer()
        Specified by:
        getContainer in interface dap4.core.data.DataCursor
      • isScalar

        public boolean isScalar()
        Specified by:
        isScalar in interface dap4.core.data.DataCursor
      • isField

        public boolean isField()
        Specified by:
        isField in interface dap4.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)
      • setScheme

        public AbstractCursor setScheme​(dap4.core.data.DataCursor.Scheme scheme)
      • setTemplate

        public AbstractCursor setTemplate​(dap4.core.dmr.DapNode template)
      • schemeFor

        public static dap4.core.data.DataCursor.Scheme schemeFor​(dap4.core.dmr.DapVariable field)