Interface Partitioner
- All Known Implementing Classes:
PartitionerTemplate
public interface Partitioner
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
static final TemplateClassDefinition<Partitioner>
-
Method Summary
Modifier and TypeMethodDescriptionvoid
clear()
void
flushOutgoingBatches
(boolean isLastBatch, boolean schemaChanged) getOutgoingBatch
(int index) Get PartitionOutgoingBatch based on the fact that there can be > 1 PartitionerList<? extends PartitionOutgoingBatch>
getStats()
void
void
partitionBatch
(RecordBatch incoming) void
setup
(ExchangeFragmentContext context, RecordBatch incoming, HashPartitionSender popConfig, OperatorStats stats, OperatorContext oContext, ClassGenerator<?> cg, int start, int count)
-
Field Details
-
DEFAULT_RECORD_BATCH_SIZE
static final int DEFAULT_RECORD_BATCH_SIZE- See Also:
-
TEMPLATE_DEFINITION
-
-
Method Details
-
setup
void setup(ExchangeFragmentContext context, RecordBatch incoming, HashPartitionSender popConfig, OperatorStats stats, OperatorContext oContext, ClassGenerator<?> cg, int start, int count) throws SchemaChangeException - Throws:
SchemaChangeException
-
partitionBatch
- Throws:
IOException
-
flushOutgoingBatches
- Throws:
IOException
-
initialize
void initialize() -
clear
void clear() -
getOutgoingBatches
List<? extends PartitionOutgoingBatch> getOutgoingBatches() -
getOutgoingBatch
Get PartitionOutgoingBatch based on the fact that there can be > 1 Partitioner- Parameters:
index
-- Returns:
- PartitionOutgoingBatch that matches index within Partitioner. This method can return null if index does not fall within boundary of this Partitioner
-
getStats
OperatorStats getStats()
-