Class AvroBaseStructSchema<T>

  • All Implemented Interfaces:
    java.lang.Cloneable, org.apache.pulsar.client.api.Schema<T>
    Direct Known Subclasses:
    AvroSchema, GenericSchemaImpl, JSONSchema, ProtobufSchema

    public abstract class AvroBaseStructSchema<T>
    extends AbstractStructSchema<T>
    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 Detail

      • schema

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

      • AvroBaseStructSchema

        public AvroBaseStructSchema​(org.apache.pulsar.common.schema.SchemaInfo schemaInfo)
    • Method Detail

      • getAvroSchema

        public org.apache.avro.Schema getAvroSchema()
      • getNativeSchema

        public java.util.Optional<java.lang.Object> getNativeSchema()