|
pulsar-client-cpp
|
#include <Schema.h>
Public Member Functions | |
| SchemaInfo () | |
| SchemaInfo (SchemaType schemaType, const std::string &name, const std::string &schema, const StringMap &properties=StringMap()) | |
| SchemaInfo (const SchemaInfo &keySchema, const SchemaInfo &valueSchema, const KeyValueEncodingType &keyValueEncodingType=KeyValueEncodingType::INLINE) | |
| SchemaType | getSchemaType () const |
| const std::string & | getName () const |
| const std::string & | getSchema () const |
| const StringMap & | getProperties () const |
Encapsulates data around the schema definition
| pulsar::SchemaInfo::SchemaInfo | ( | ) |
The default constructor with following configs:
| pulsar::SchemaInfo::SchemaInfo | ( | SchemaType | schemaType, |
| const std::string & | name, | ||
| const std::string & | schema, | ||
| const StringMap & | properties = StringMap() |
||
| ) |
| schemaType | the schema type |
| name | the name of the schema definition |
| schema | the schema definition as a JSON string |
| properties | a map of custom defined properties attached to the schema |
| pulsar::SchemaInfo::SchemaInfo | ( | const SchemaInfo & | keySchema, |
| const SchemaInfo & | valueSchema, | ||
| const KeyValueEncodingType & | keyValueEncodingType = KeyValueEncodingType::INLINE |
||
| ) |
| keySchema | the key schema. |
| valueSchema | the value schema. |
| keyValueEncodingType | Encoding types of supported KeyValueSchema for Pulsar messages. |
| const std::string & pulsar::SchemaInfo::getName | ( | ) | const |
| const StringMap & pulsar::SchemaInfo::getProperties | ( | ) | const |
| const std::string & pulsar::SchemaInfo::getSchema | ( | ) | const |
| SchemaType pulsar::SchemaInfo::getSchemaType | ( | ) | const |