librdkafka
The Apache Kafka C/C++ client library
RdKafka::PartitionerKeyPointerCb Class Referenceabstract

Variant partitioner with key pointer. More...

#include <rdkafkacpp.h>

Public Member Functions

virtual int32_t partitioner_cb (const Topic *topic, const void *key, size_t key_len, int32_t partition_cnt, void *msg_opaque)=0
 Variant partitioner callback that gets key as pointer and length instead of as a const std::string *. More...
 

Detailed Description

Variant partitioner with key pointer.

Member Function Documentation

§ partitioner_cb()

virtual int32_t RdKafka::PartitionerKeyPointerCb::partitioner_cb ( const Topic topic,
const void *  key,
size_t  key_len,
int32_t  partition_cnt,
void *  msg_opaque 
)
pure virtual

Variant partitioner callback that gets key as pointer and length instead of as a const std::string *.

Remarks
key may be NULL or have key_len 0.
See also
See RdKafka::PartitionerCb::partitioner_cb() for exact semantics

The documentation for this class was generated from the following file: