public interface Partitioner
| Modifier and Type | Field and Description |
|---|---|
static TemplateClassDefinition<Partitioner> |
TEMPLATE_DEFINITION |
| Modifier and Type | Method and Description |
|---|---|
void |
clear() |
void |
flushOutgoingBatches(boolean isLastBatch,
boolean schemaChanged) |
PartitionOutgoingBatch |
getOutgoingBatch(int index)
Method to get PartitionOutgoingBatch based on the fact that there can be > 1 Partitioner
|
List<? extends PartitionOutgoingBatch> |
getOutgoingBatches() |
OperatorStats |
getStats() |
void |
initialize() |
void |
partitionBatch(RecordBatch incoming) |
void |
setup(FragmentContext context,
RecordBatch incoming,
HashPartitionSender popConfig,
OperatorStats stats,
OperatorContext oContext,
int start,
int count) |
static final TemplateClassDefinition<Partitioner> TEMPLATE_DEFINITION
void setup(FragmentContext context, RecordBatch incoming, HashPartitionSender popConfig, OperatorStats stats, OperatorContext oContext, int start, int count) throws SchemaChangeException
SchemaChangeExceptionvoid partitionBatch(RecordBatch incoming) throws IOException
IOExceptionvoid flushOutgoingBatches(boolean isLastBatch,
boolean schemaChanged)
throws IOException
IOExceptionvoid initialize()
void clear()
List<? extends PartitionOutgoingBatch> getOutgoingBatches()
PartitionOutgoingBatch getOutgoingBatch(int index)
index - OperatorStats getStats()
Copyright © 2017 The Apache Software Foundation. All rights reserved.