Class DirectRowSet
java.lang.Object
org.apache.drill.exec.physical.rowSet.AbstractRowSet
org.apache.drill.exec.physical.rowSet.AbstractSingleRowSet
org.apache.drill.exec.physical.rowSet.DirectRowSet
- All Implemented Interfaces:
RowSet,RowSet.ExtendableRowSet,RowSet.SingleRowSet
Implementation of a single row set with no indirection (selection)
vector.
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from interface org.apache.drill.exec.physical.rowSet.RowSet
RowSet.ExtendableRowSet, RowSet.HyperRowSet, RowSet.HyperRowSetBuilder, RowSet.SingleRowSet -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intInitial row count, used for preliminary memory allocation.Fields inherited from class org.apache.drill.exec.physical.rowSet.AbstractRowSet
container, schema -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidallocate(int rowCount) static DirectRowSetfromContainer(VectorContainer container) static DirectRowSetfromSchema(BufferAllocator allocator, BatchSchema schema) static DirectRowSetfromSchema(BufferAllocator allocator, TupleMetadata schema) static DirectRowSetfromVectorAccessible(BufferAllocator allocator, VectorAccessible va) getSv2()booleanbooleanreader()toIndirect(Set<Integer> skipIndices) writer()writer(int initialRowCount) Methods inherited from class org.apache.drill.exec.physical.rowSet.AbstractSingleRowSet
buildReader, sizeMethods 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, print, rowCount, schema, size, vectorAccessible
-
Field Details
-
INITIAL_ROW_COUNT
public static final int INITIAL_ROW_COUNTInitial row count, used for preliminary memory allocation.- See Also:
-
-
Constructor Details
-
DirectRowSet
-
-
Method Details
-
fromSchema
-
fromSchema
-
fromContainer
-
fromVectorAccessible
-
allocate
public void allocate(int rowCount) - Specified by:
allocatein interfaceRowSet.ExtendableRowSet
-
writer
- Specified by:
writerin interfaceRowSet.ExtendableRowSet
-
writer
- Specified by:
writerin interfaceRowSet.ExtendableRowSet
-
reader
-
isExtendable
public boolean isExtendable()- Specified by:
isExtendablein interfaceRowSet
-
isWritable
public boolean isWritable()- Specified by:
isWritablein interfaceRowSet
-
indirectionType
- Specified by:
indirectionTypein interfaceRowSet
-
toIndirect
- Specified by:
toIndirectin interfaceRowSet.SingleRowSet
-
toIndirect
- Specified by:
toIndirectin interfaceRowSet.SingleRowSet
-
getSv2
- Specified by:
getSv2in interfaceRowSet.SingleRowSet
-