public abstract class KafkaPartitioner<T> extends Object implements Serializable
| Constructor and Description |
|---|
KafkaPartitioner() |
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.public abstract int partition(T next, byte[] serializedKey, byte[] serializedValue, int numPartitions)
Copyright © 2014–2016 The Apache Software Foundation. All rights reserved.