Class JSONSchema<T>

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

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

      • 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​(java.lang.Class<T> pojo)
      • of

        public static <T> JSONSchema<T> of​(java.lang.Class<T> pojo,
                                           java.util.Map<java.lang.String,​java.lang.String> properties)