public class IteratorValidatorBatchIterator extends Object implements CloseableRecordBatch
RecordBatch.IterOutcomeMAX_BATCH_SIZE| Constructor and Description |
|---|
IteratorValidatorBatchIterator(RecordBatch incoming) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
void |
enableBatchValidation(boolean option) |
FragmentContext |
getContext()
Gets the FragmentContext of the current query fragment.
|
RecordBatch |
getIncoming() |
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()
Updates the data in each Field reading interface for the next range of
records.
|
String |
toString() |
public IteratorValidatorBatchIterator(RecordBatch incoming)
public void enableBatchValidation(boolean option)
public 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 int getRecordCount()
RecordBatchgetRecordCount in interface RecordBatchgetRecordCount in interface VectorAccessiblepublic void kill(boolean sendUpstream)
RecordBatchkill in interface RecordBatchpublic 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 RecordBatch.IterOutcome next()
RecordBatch
Once a RecordBatch's next() has returned RecordBatch.IterOutcome.NONE
or RecordBatch.IterOutcome.STOP, the consumer should no longer call
next(). Behavior at this point is undefined and likely to
throw an exception.
See RecordBatch.IterOutcome for the protocol (possible sequences of return
values).
next in interface RecordBatchpublic WritableBatch getWritableBatch()
RecordBatchgetWritableBatch in interface RecordBatchpublic void close()
close in interface AutoCloseablepublic VectorContainer getOutgoingContainer()
getOutgoingContainer in interface RecordBatchpublic RecordBatch getIncoming()
Copyright © 2017 The Apache Software Foundation. All rights reserved.