pulsar-client-cpp
Public Member Functions | List of all members
pulsar::SchemaInfo Class Reference

#include <Schema.h>

Public Member Functions

 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
 

Detailed Description

Encapsulates data around the schema definition

Constructor & Destructor Documentation

◆ SchemaInfo()

pulsar::SchemaInfo::SchemaInfo ( SchemaType  schemaType,
const std::string &  name,
const std::string &  schema,
const StringMap &  properties = StringMap() 
)
Parameters
schemaTypethe schema type
namethe name of the schema definition
schemathe schema definition as a JSON string
propertiesa map of custom defined properties attached to the schema

Member Function Documentation

◆ getName()

const std::string& pulsar::SchemaInfo::getName ( ) const
Returns
the name of the schema definition

◆ getProperties()

const StringMap& pulsar::SchemaInfo::getProperties ( ) const
Returns
a map of custom defined properties attached to the schema

◆ getSchema()

const std::string& pulsar::SchemaInfo::getSchema ( ) const
Returns
the schema definition as a JSON string

◆ getSchemaType()

SchemaType pulsar::SchemaInfo::getSchemaType ( ) const
Returns
the schema type

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