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 Details
-
NumberPartitioner
public NumberPartitioner()
-
-
Method Details
-
configure
- 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
-