Package io.trino.testing.kafka
Class NumberPartitioner
- java.lang.Object
-
- io.trino.testing.kafka.NumberPartitioner
-
- All Implemented Interfaces:
Closeable,AutoCloseable,org.apache.kafka.clients.producer.Partitioner,org.apache.kafka.common.Configurable
public class NumberPartitioner extends Object implements org.apache.kafka.clients.producer.Partitioner
-
-
Constructor Summary
Constructors Constructor Description NumberPartitioner()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()voidconfigure(Map<String,?> configs)intpartition(String topic, Object key, byte[] keyBytes, Object value, byte[] valueBytes, org.apache.kafka.common.Cluster cluster)
-
-
-
Method Detail
-
configure
public void configure(Map<String,?> configs)
- Specified by:
configurein interfaceorg.apache.kafka.common.Configurable
-
partition
public int partition(String topic, Object key, byte[] keyBytes, Object value, byte[] valueBytes, org.apache.kafka.common.Cluster cluster)
- Specified by:
partitionin interfaceorg.apache.kafka.clients.producer.Partitioner
-
close
public void close()
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Specified by:
closein interfaceorg.apache.kafka.clients.producer.Partitioner
-
-