public static class ScanBatch.Mutator extends Object implements OutputMutator
| Constructor and Description |
|---|
Mutator(OperatorContext oContext,
BufferAllocator allocator,
VectorContainer container) |
| Modifier and Type | Method and Description |
|---|---|
<T extends ValueVector> |
addField(MaterializedField field,
Class<T> clazz)
Add a ValueVector for new (or existing) field.
|
void |
allocate(int recordCount) |
void |
clear()
Clear this mutator i.e.
|
Map<String,ValueVector> |
fieldVectorMap() |
CallBack |
getCallBack() |
DrillBuf |
getManagedBuffer()
Allows a scanner to request a set of managed block of memory.
|
Map<String,ValueVector> |
implicitFieldVectorMap() |
boolean |
isNewSchema()
Reports whether schema has changed (field was added or re-added) since
last call to
isNewSchema(). |
public Mutator(OperatorContext oContext, BufferAllocator allocator, VectorContainer container)
public Map<String,ValueVector> fieldVectorMap()
public Map<String,ValueVector> implicitFieldVectorMap()
public <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 void allocate(int recordCount)
allocate in interface OutputMutatorpublic boolean isNewSchema()
isNewSchema(). Returns true at first call.isNewSchema in interface OutputMutatorpublic DrillBuf getManagedBuffer()
OutputMutatorgetManagedBuffer in interface OutputMutatorpublic CallBack getCallBack()
getCallBack in interface OutputMutatorpublic void clear()
OutputMutatorclear in interface OutputMutatorCopyright © 2022 The Apache Software Foundation. All rights reserved.