public class PartitionerTemplate.OutgoingRecordBatch extends Object implements PartitionOutgoingBatch, VectorAccessible
| Constructor and Description |
|---|
PartitionerTemplate.OutgoingRecordBatch(OperatorStats stats,
HashPartitionSender operator,
AccountingDataTunnel tunnel,
FragmentContext context,
BufferAllocator allocator,
int oppositeMinorFragmentId) |
| Modifier and Type | Method and Description |
|---|---|
void |
clear() |
protected void |
copy(int inIndex) |
protected void |
doEval(int inIndex,
int outIndex) |
protected void |
doSetup(RecordBatch incoming,
VectorAccessible outgoing) |
void |
flush(boolean schemaChanged) |
int |
getRecordCount()
Get the number of records.
|
BatchSchema |
getSchema()
Get the schema of the current RecordBatch.
|
SelectionVector2 |
getSelectionVector2() |
SelectionVector4 |
getSelectionVector4() |
long |
getTotalRecords() |
VectorWrapper<?> |
getValueAccessorById(Class<?> clazz,
int... fieldIds) |
TypedFieldId |
getValueVectorId(SchemaPath path)
Get the value vector type and id for the given schema path.
|
WritableBatch |
getWritableBatch() |
void |
initializeBatch()
Initialize the OutgoingBatch based on the current schema in incoming RecordBatch
|
Iterator<VectorWrapper<?>> |
iterator() |
void |
resetBatch() |
void |
setIsLast() |
void |
terminate() |
void |
updateStats(FragmentWritableBatch writableBatch) |
public PartitionerTemplate.OutgoingRecordBatch(OperatorStats stats, HashPartitionSender operator, AccountingDataTunnel tunnel, FragmentContext context, BufferAllocator allocator, int oppositeMinorFragmentId)
protected void copy(int inIndex)
throws IOException
IOExceptionpublic void terminate()
terminate in interface PartitionOutgoingBatchprotected void doSetup(@Named(value="incoming")
RecordBatch incoming,
@Named(value="outgoing")
VectorAccessible outgoing)
throws SchemaChangeException
SchemaChangeExceptionprotected void doEval(@Named(value="inIndex")
int inIndex,
@Named(value="outIndex")
int outIndex)
throws SchemaChangeException
SchemaChangeExceptionpublic void flush(boolean schemaChanged)
throws IOException
IOExceptionpublic void updateStats(FragmentWritableBatch writableBatch)
public void initializeBatch()
public void resetBatch()
public void setIsLast()
public BatchSchema getSchema()
VectorAccessiblegetSchema in interface VectorAccessiblepublic int getRecordCount()
VectorAccessiblegetRecordCount in interface VectorAccessiblepublic long getTotalRecords()
getTotalRecords in interface PartitionOutgoingBatchpublic TypedFieldId getValueVectorId(SchemaPath path)
VectorAccessiblegetValueVectorId in interface VectorAccessiblepath - the path where the vector should be located.public VectorWrapper<?> getValueAccessorById(Class<?> clazz, int... fieldIds)
getValueAccessorById in interface VectorAccessiblepublic Iterator<VectorWrapper<?>> iterator()
iterator in interface Iterable<VectorWrapper<?>>public SelectionVector2 getSelectionVector2()
getSelectionVector2 in interface VectorAccessiblepublic SelectionVector4 getSelectionVector4()
getSelectionVector4 in interface VectorAccessiblepublic WritableBatch getWritableBatch()
public void clear()
Copyright © 2017 The Apache Software Foundation. All rights reserved.