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, initialize
public String getPartitionId(T element)
KinesisPartitioner
getPartitionId
in class KinesisPartitioner<T>
element
- Element to partitionCopyright © 2014–2023 The Apache Software Foundation. All rights reserved.