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
Base class for row sets backed by a single record batch.
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.apache.drill.exec.physical.rowSet.RowSet
RowSet.ExtendableRowSet, RowSet.HyperRowSet, RowSet.HyperRowSetBuilder, RowSet.SingleRowSet
-
Field Summary
Fields inherited from class org.apache.drill.exec.physical.rowSet.AbstractRowSet
container, schema
-
Constructor Summary
ModifierConstructorDescriptionprotected
protected
AbstractSingleRowSet
(VectorContainer container, TupleMetadata schema) -
Method Summary
Modifier and TypeMethodDescriptionprotected RowSetReader
buildReader
(ReaderIndex rowIndex) Internal method to build the set of column readers needed for this row set.long
size()
Return the size in memory of this record set, including indirection vectors, null vectors, offset vectors and the entire (used and unused) data vectors.Methods inherited from class org.apache.drill.exec.physical.rowSet.AbstractRowSet
allocator, batchSchema, clear, container, print, rowCount, schema, toString, vectorAccessible
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.apache.drill.exec.physical.rowSet.RowSet
allocator, batchSchema, clear, container, indirectionType, isExtendable, isWritable, print, reader, rowCount, schema, vectorAccessible
Methods inherited from interface org.apache.drill.exec.physical.rowSet.RowSet.SingleRowSet
getSv2, toIndirect, toIndirect
-
Constructor Details
-
AbstractSingleRowSet
-
AbstractSingleRowSet
-
-
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 interfaceRowSet
- Overrides:
size
in classAbstractRowSet
- Returns:
- memory size in bytes
-
buildReader
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.
-