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
OutputMutator
addField
in interface OutputMutator
field
- 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 OutputMutator
public boolean isNewSchema()
isNewSchema()
. Returns true at first call.isNewSchema
in interface OutputMutator
public DrillBuf getManagedBuffer()
OutputMutator
getManagedBuffer
in interface OutputMutator
public CallBack getCallBack()
getCallBack
in interface OutputMutator
public void clear()
OutputMutator
clear
in interface OutputMutator
Copyright © 1970 The Apache Software Foundation. All rights reserved.