Class AvroBaseStructSchema<T>
- java.lang.Object
-
- org.apache.pulsar.client.impl.schema.AbstractSchema<T>
-
- org.apache.pulsar.client.impl.schema.AbstractStructSchema<T>
-
- org.apache.pulsar.client.impl.schema.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, andSchemaType.PROTOBUF.
-
-
Field Summary
Fields Modifier and Type Field Description protected org.apache.avro.Schemaschema-
Fields inherited from class org.apache.pulsar.client.impl.schema.AbstractStructSchema
LOG, reader, schemaInfo, schemaInfoProvider, writer
-
-
Constructor Summary
Constructors Constructor Description AvroBaseStructSchema(org.apache.pulsar.common.schema.SchemaInfo schemaInfo)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.apache.avro.SchemagetAvroSchema()java.util.Optional<java.lang.Object>getNativeSchema()-
Methods inherited from class org.apache.pulsar.client.impl.schema.AbstractStructSchema
atSchemaVersion, decode, decode, decode, decode, encode, getReader, getSchemaInfo, setReader, setSchemaInfoProvider, setWriter
-
Methods inherited from class org.apache.pulsar.client.impl.schema.AbstractSchema
clone
-
-