public static interface KinesisPartitioner.ExplicitPartitioner<T> extends KinesisPartitioner<T>
Nonnull explicit hash key. The partition
key is irrelevant in this case, though it cannot be null.KinesisPartitioner.ExplicitPartitioner<T>MAX_HASH_KEY, MIN_HASH_KEY| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getExplicitHashKey(T record)
Required hash value (128-bit integer) to determine explicitly the shard a record is assigned
to based on the hash key range of each shard.
|
default java.lang.String |
getPartitionKey(T record)
Determines which shard in the stream the record is assigned to.
|
explicitRandomPartitioner@Nonnull default java.lang.String getPartitionKey(T record)
KinesisPartitionergetPartitionKey in interface KinesisPartitioner<T>@Nonnull java.lang.String getExplicitHashKey(T record)
getExplicitHashKey in interface KinesisPartitioner<T>