public class EidPartitioner extends Object implements Partitioner
| Constructor and Description |
|---|
EidPartitioner() |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
void |
configure(Map<String,?> configs) |
int |
partition(String topic,
Object key,
byte[] keyBytes,
Object value,
byte[] valueBytes,
Cluster cluster) |
int |
partitionForDoc(Map<Keyword,Object> doc,
int numPartitions) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitonNewBatchpublic void configure(Map<String,?> configs)
configure in interface Configurablepublic int partition(String topic, Object key, byte[] keyBytes, Object value, byte[] valueBytes, Cluster cluster)
partition in interface Partitionerpublic void close()
close in interface Closeableclose in interface AutoCloseableclose in interface Partitioner