FlinkKafkaPartitioner
instead.@Deprecated public abstract class KafkaPartitioner<T> extends Object implements Serializable
Constructor and Description |
---|
KafkaPartitioner()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
void |
open(int parallelInstanceId,
int parallelInstances,
int[] partitions)
Deprecated.
Initializer for the Partitioner.
|
abstract int |
partition(T next,
byte[] serializedKey,
byte[] serializedValue,
int numPartitions)
Deprecated.
|
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–2018 The Apache Software Foundation. All rights reserved.