Class StructSchema<T>

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

    @Deprecated
    public abstract class StructSchema<T>
    extends AbstractStructSchema<T>
    Deprecated.
    This is a base schema implementation for Avro Based `Struct` types. A struct type is used for presenting records (objects) which have multiple fields.

    Currently Pulsar supports 3 `Struct` types - SchemaType.AVRO, SchemaType.JSON, and SchemaType.PROTOBUF.

    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected org.apache.avro.Schema schema
      Deprecated.
       
      • Fields inherited from interface org.apache.pulsar.client.api.Schema

        BOOL, BYTEBUFFER, BYTES, DATE, DOUBLE, FLOAT, INSTANT, INT16, INT32, INT64, INT8, LOCAL_DATE, LOCAL_DATE_TIME, LOCAL_TIME, STRING, TIME, TIMESTAMP
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      protected StructSchema​(org.apache.pulsar.common.schema.SchemaInfo schemaInfo)
      Deprecated.
       
    • Field Detail

      • schema

        protected final org.apache.avro.Schema schema
        Deprecated.
    • Constructor Detail

      • StructSchema

        protected StructSchema​(org.apache.pulsar.common.schema.SchemaInfo schemaInfo)
        Deprecated.
    • Method Detail

      • getAvroSchema

        public org.apache.avro.Schema getAvroSchema()
        Deprecated.
      • createAvroSchema

        protected static org.apache.avro.Schema createAvroSchema​(org.apache.pulsar.client.api.schema.SchemaDefinition schemaDefinition)
        Deprecated.
      • extractAvroSchema

        protected static org.apache.avro.Schema extractAvroSchema​(org.apache.pulsar.client.api.schema.SchemaDefinition schemaDefinition,
                                                                  java.lang.Class pojo)
        Deprecated.
      • parseAvroSchema

        protected static org.apache.avro.Schema parseAvroSchema​(java.lang.String schemaJson)
        Deprecated.
      • parseSchemaInfo

        public static <T> org.apache.pulsar.common.schema.SchemaInfo parseSchemaInfo​(org.apache.pulsar.client.api.schema.SchemaDefinition<T> schemaDefinition,
                                                                                     org.apache.pulsar.common.schema.SchemaType schemaType)
        Deprecated.