@PublicEvolving public final class FixedKinesisPartitionKeyGenerator<T> extends Object implements PartitionKeyGenerator<T>
This is achieved by using the index of the producer task as a PartitionKey.
public void initialize(int indexOfThisSubtask,
int numberOfParallelSubtasks)
public String apply(T record)
apply 在接口中 java.util.function.Function<T,String>Copyright © 2014–2023 The Apache Software Foundation. All rights reserved.