Class FixedKinesisPartitionKeyGenerator<T>
- java.lang.Object
-
- org.apache.flink.connector.kinesis.table.FixedKinesisPartitionKeyGenerator<T>
-
- All Implemented Interfaces:
Serializable,java.util.function.Function<T,String>,PartitionKeyGenerator<T>
@PublicEvolving public final class FixedKinesisPartitionKeyGenerator<T> extends Object implements PartitionKeyGenerator<T>
A partitioner ensuring that each internal Flink partition ends up in the same Kinesis partition.This is achieved by using the index of the producer task as a
PartitionKey.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description FixedKinesisPartitionKeyGenerator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Stringapply(T record)booleanequals(Object o)inthashCode()voidinitialize(int indexOfThisSubtask, int numberOfParallelSubtasks)
-