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 classes/interfaces inherited from interface org.apache.drill.exec.physical.rowSet.RowSet
RowSet.ExtendableRowSet, RowSet.HyperRowSet, RowSet.HyperRowSetBuilder, RowSet.SingleRowSet
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
Initial row count, used for preliminary memory allocation.Fields inherited from class org.apache.drill.exec.physical.rowSet.AbstractRowSet
container, schema
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
allocate
(int rowCount) static DirectRowSet
fromContainer
(VectorContainer container) static DirectRowSet
fromSchema
(BufferAllocator allocator, BatchSchema schema) static DirectRowSet
fromSchema
(BufferAllocator allocator, TupleMetadata schema) static DirectRowSet
fromVectorAccessible
(BufferAllocator allocator, VectorAccessible va) getSv2()
boolean
boolean
reader()
toIndirect
(Set<Integer> skipIndices) writer()
writer
(int initialRowCount) Methods inherited from class org.apache.drill.exec.physical.rowSet.AbstractSingleRowSet
buildReader, size
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, 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:
allocate
in interfaceRowSet.ExtendableRowSet
-
writer
- Specified by:
writer
in interfaceRowSet.ExtendableRowSet
-
writer
- Specified by:
writer
in interfaceRowSet.ExtendableRowSet
-
reader
-
isExtendable
public boolean isExtendable()- Specified by:
isExtendable
in interfaceRowSet
-
isWritable
public boolean isWritable()- Specified by:
isWritable
in interfaceRowSet
-
indirectionType
- Specified by:
indirectionType
in interfaceRowSet
-
toIndirect
- Specified by:
toIndirect
in interfaceRowSet.SingleRowSet
-
toIndirect
- Specified by:
toIndirect
in interfaceRowSet.SingleRowSet
-
getSv2
- Specified by:
getSv2
in interfaceRowSet.SingleRowSet
-