public class SpilledRecordbatch extends Object implements CloseableRecordBatch
RecordBatch.IterOutcomeMAX_BATCH_SIZE| Constructor and Description |
|---|
SpilledRecordbatch(String spillFile,
int spilledBatches,
FragmentContext context,
BatchSchema schema,
OperatorContext oContext,
SpillSet spillSet) |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Note: ignoring any IO errors (e.g.
|
FragmentContext |
getContext()
Gets the FragmentContext of the current query fragment.
|
VectorContainer |
getOutgoingContainer() |
int |
getRecordCount()
Gets the number of records that are within this record.
|
BatchSchema |
getSchema()
Gets the current schema of this record batch.
|
SelectionVector2 |
getSelectionVector2() |
SelectionVector4 |
getSelectionVector4() |
VectorWrapper<?> |
getValueAccessorById(Class<?> clazz,
int... ids) |
TypedFieldId |
getValueVectorId(SchemaPath path)
Gets the value vector type and ID for the given schema path.
|
WritableBatch |
getWritableBatch()
Gets a writable version of this batch.
|
Iterator<VectorWrapper<?>> |
iterator() |
void |
kill(boolean sendUpstream)
Informs child nodes that this query should be terminated.
|
RecordBatch.IterOutcome |
next()
Read the next batch from the spill file
|
public SpilledRecordbatch(String spillFile, int spilledBatches, FragmentContext context, BatchSchema schema, OperatorContext oContext, SpillSet spillSet)
public SelectionVector2 getSelectionVector2()
getSelectionVector2 in interface VectorAccessiblepublic SelectionVector4 getSelectionVector4()
getSelectionVector4 in interface VectorAccessiblepublic TypedFieldId getValueVectorId(SchemaPath path)
RecordBatchgetValueVectorId in interface RecordBatchgetValueVectorId in interface VectorAccessiblepath - The path where the vector should be located.public VectorWrapper<?> getValueAccessorById(Class<?> clazz, int... ids)
getValueAccessorById in interface RecordBatchgetValueAccessorById in interface VectorAccessiblepublic Iterator<VectorWrapper<?>> iterator()
iterator in interface Iterable<VectorWrapper<?>>public FragmentContext getContext()
RecordBatchgetContext in interface RecordBatchpublic BatchSchema getSchema()
RecordBatch
May be called only when the most recent call to RecordBatch.next(), if any,
returned #OK_NEW_SCHEMA or #OK.
The schema changes when and only when RecordBatch.next() returns
#OK_NEW_SCHEMA.
getSchema in interface RecordBatchgetSchema in interface VectorAccessiblepublic WritableBatch getWritableBatch()
RecordBatchgetWritableBatch in interface RecordBatchpublic VectorContainer getOutgoingContainer()
getOutgoingContainer in interface RecordBatchpublic int getRecordCount()
RecordBatchgetRecordCount in interface RecordBatchgetRecordCount in interface VectorAccessiblepublic void kill(boolean sendUpstream)
RecordBatchkill in interface RecordBatchpublic RecordBatch.IterOutcome next()
next in interface RecordBatchpublic void close()
close in interface AutoCloseableCopyright © 2017 The Apache Software Foundation. All rights reserved.