mosche commented on code in PR #17113: URL: https://github.com/apache/beam/pull/17113#discussion_r844896504
########## sdks/java/io/amazon-web-services2/src/main/java/org/apache/beam/sdk/io/aws2/kinesis/KinesisPartitioner.java: ########## @@ -47,6 +47,26 @@ return null; } + /** + * An explicit partitioner that always returns a {@code Nonnull} explicit hash key. The partition + * key is irrelevant in this case, though it cannot be {@code null}. + */ + interface ExplicitPartitioner<T> extends KinesisPartitioner<T> { + @Override + default @Nonnull String getPartitionKey(T record) { + return "a"; // will be ignored, but can't be null Review Comment: It can't be empty, this constant is apparently what KPL uses in this case -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: github-unsubscr...@beam.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org