Class JSONSchema<T>

All Implemented Interfaces:
Cloneable, org.apache.pulsar.client.api.Schema<T>

public class JSONSchema<T> extends AvroBaseStructSchema<T>
A schema implementation to deal with json data.
  • Method Details

    • getBackwardsCompatibleJsonSchemaInfo

      public org.apache.pulsar.common.schema.SchemaInfo getBackwardsCompatibleJsonSchemaInfo()
      Implemented for backwards compatibility reasons. since the original schema generated by JSONSchema was based off the json schema standard since then we have standardized on Avro
      Returns:
    • of

      public static <T> JSONSchema<T> of(org.apache.pulsar.client.api.schema.SchemaDefinition<T> schemaDefinition)
    • of

      public static <T> JSONSchema<T> of(Class<T> pojo)
    • of

      public static <T> JSONSchema<T> of(Class<T> pojo, Map<String,String> properties)