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
ConstructorsModifierConstructorDescriptionprotectedprotectedAbstractSingleRowSet(VectorContainer container, TupleMetadata schema) -
Method Summary
Modifier and TypeMethodDescriptionprotected RowSetReaderbuildReader(ReaderIndex rowIndex) Internal method to build the set of column readers needed for this row set.longsize()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, vectorAccessibleMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.apache.drill.exec.physical.rowSet.RowSet
allocator, batchSchema, clear, container, indirectionType, isExtendable, isWritable, print, reader, rowCount, schema, vectorAccessibleMethods 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:RowSetReturn 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:
sizein interfaceRowSet- Overrides:
sizein 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.
-