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()) | |
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 |
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 |