Class AvroBaseStructSchema<T>

All Implemented Interfaces:
Cloneable, 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 Details

    • schema

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

    • AvroBaseStructSchema

      public AvroBaseStructSchema(SchemaInfo schemaInfo)
  • Method Details

    • getAvroSchema

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

      public Optional<Object> getNativeSchema()