T - The input element type.@PublicEvolving public final class RandomKinesisPartitioner<T> extends KinesisPartitioner<T>
KinesisPartitioner that maps an arbitrary input element to a random partition
ID.| Constructor and Description |
|---|
RandomKinesisPartitioner() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
String |
getPartitionId(T element)
Return a partition id based on the input.
|
int |
hashCode() |
getExplicitHashKey, initializepublic String getPartitionId(T element)
KinesisPartitionergetPartitionId in class KinesisPartitioner<T>element - Element to partitionCopyright © 2014–2022 The Apache Software Foundation. All rights reserved.