public interface Partitioner
| Modifier and Type | Field and Description |
|---|---|
static int |
DEFAULT_RECORD_BATCH_SIZE |
static TemplateClassDefinition<Partitioner> |
TEMPLATE_DEFINITION |
| Modifier and Type | Method and Description |
|---|---|
void |
clear() |
void |
flushOutgoingBatches(boolean isLastBatch,
boolean schemaChanged) |
PartitionOutgoingBatch |
getOutgoingBatch(int index)
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(ExchangeFragmentContext context,
RecordBatch incoming,
HashPartitionSender popConfig,
OperatorStats stats,
OperatorContext oContext,
ClassGenerator<?> cg,
int start,
int count) |
static final int DEFAULT_RECORD_BATCH_SIZE
static final TemplateClassDefinition<Partitioner> TEMPLATE_DEFINITION
void setup(ExchangeFragmentContext context, RecordBatch incoming, HashPartitionSender popConfig, OperatorStats stats, OperatorContext oContext, ClassGenerator<?> cg, 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 © 2021 The Apache Software Foundation. All rights reserved.