public class TestOutputMutator extends Object implements OutputMutator, Iterable<VectorWrapper<?>>
| Constructor and Description |
|---|
TestOutputMutator(BufferAllocator allocator) |
| Modifier and Type | Method and Description |
|---|---|
<T extends ValueVector> |
addField(MaterializedField field,
Class<T> clazz)
Add a ValueVector for new (or existing) field.
|
void |
addField(ValueVector vector) |
void |
allocate(int recordCount) |
void |
clear()
Clear this mutator i.e.
|
CallBack |
getCallBack() |
VectorContainer |
getContainer() |
DrillBuf |
getManagedBuffer()
Allows a scanner to request a set of managed block of memory.
|
boolean |
isNewSchema()
Whether or not the fields added to the OutputMutator generated a new schema event.
|
Iterator<VectorWrapper<?>> |
iterator() |
void |
removeField(MaterializedField field) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEach, spliteratorpublic TestOutputMutator(BufferAllocator allocator)
public void removeField(MaterializedField field) throws SchemaChangeException
SchemaChangeExceptionpublic void addField(ValueVector vector)
public Iterator<VectorWrapper<?>> iterator()
iterator in interface Iterable<VectorWrapper<?>>public void clear()
OutputMutatorclear in interface OutputMutatorpublic boolean isNewSchema()
OutputMutatorisNewSchema in interface OutputMutatorpublic void allocate(int recordCount)
allocate in interface OutputMutatorpublic <T extends ValueVector> T addField(MaterializedField field, Class<T> clazz) throws SchemaChangeException
OutputMutatoraddField in interface OutputMutatorfield - The specification of the newly desired vector.clazz - The expected ValueVector class. Also allows strongly typed use of this interface.SchemaChangeException - If the addition of this field is incompatible with this OutputMutator's capabilities.public DrillBuf getManagedBuffer()
OutputMutatorgetManagedBuffer in interface OutputMutatorpublic CallBack getCallBack()
getCallBack in interface OutputMutatorpublic VectorContainer getContainer()
Copyright © 2021 The Apache Software Foundation. All rights reserved.