Class AbstractSingleRowSet

java.lang.Object
org.apache.drill.exec.physical.rowSet.AbstractRowSet
org.apache.drill.exec.physical.rowSet.AbstractSingleRowSet
All Implemented Interfaces:
RowSet, RowSet.SingleRowSet
Direct Known Subclasses:
DirectRowSet, IndirectRowSet

public abstract class AbstractSingleRowSet extends AbstractRowSet implements RowSet.SingleRowSet
Base class for row sets backed by a single record batch.
  • Constructor Details

  • Method Details

    • size

      public long size()
      Description copied from interface: RowSet
      Return the size in memory of this record set, including indirection vectors, null vectors, offset vectors and the entire (used and unused) data vectors.
      Specified by:
      size in interface RowSet
      Overrides:
      size in class AbstractRowSet
      Returns:
      memory size in bytes
    • buildReader

      protected RowSetReader buildReader(ReaderIndex rowIndex)
      Internal method to build the set of column readers needed for this row set. Used when building a row set reader.
      Parameters:
      rowIndex - object that points to the current row
      Returns:
      an array of column readers: in the same order as the (non-map) vectors.