public abstract class KafkaPartitioner extends Object implements kafka.producer.Partitioner, Serializable
| Constructor and Description |
|---|
KafkaPartitioner() |
| Modifier and Type | Method and Description |
|---|---|
void |
open(int parallelInstanceId,
int parallelInstances,
int[] partitions)
Initializer for the Partitioner.
|
public void open(int parallelInstanceId,
int parallelInstances,
int[] partitions)
parallelInstanceId - 0-indexed id of the parallel instance in FlinkparallelInstances - the total number of parallel instancespartitions - an array describing the partition IDs of the available Kafka partitions.Copyright © 2014–2015 The Apache Software Foundation. All rights reserved.