|
pulsar-client-cpp
|
#include <KeyValue.h>
Public Member Functions | |
| KeyValue (std::string &&key, std::string &&value) | |
| std::string | getKey () const |
| const void * | getValue () const |
| size_t | getValueLength () const |
| std::string | getValueAsString () const |
Friends | |
| class | Message |
| class | MessageBuilder |
Use to when the user uses key value schema.
| pulsar::KeyValue::KeyValue | ( | std::string && | key, |
| std::string && | value | ||
| ) |
Constructor key value, according to keyValueEncodingType, whether key and value be encoded together.
| key | key data. |
| value | value data. |
| keyValueEncodingType | key value encoding type. |
| std::string pulsar::KeyValue::getKey | ( | ) | const |
Get the key of KeyValue.
| const void * pulsar::KeyValue::getValue | ( | ) | const |
| std::string pulsar::KeyValue::getValueAsString | ( | ) | const |
| size_t pulsar::KeyValue::getValueLength | ( | ) | const |
Get the value length of the keyValue.