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>
- Direct Known Subclasses:
AvroSchema,GenericSchemaImpl,JSONSchema,ProtobufSchema
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
FieldsFields inherited from class org.apache.pulsar.client.impl.schema.AbstractStructSchema
LOG, reader, schemaInfo, schemaInfoProvider, writerFields 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 -
Method Summary
Modifier and TypeMethodDescriptionorg.apache.avro.SchemaMethods inherited from class org.apache.pulsar.client.impl.schema.AbstractStructSchema
atSchemaVersion, decode, decode, decode, decode, decode, decode, encode, getReader, getSchemaInfo, setReader, setSchemaInfoProvider, setWriterMethods inherited from class org.apache.pulsar.client.impl.schema.AbstractSchema
cloneMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.pulsar.client.api.Schema
configureSchemaInfo, requireFetchingSchemaInfo, supportSchemaVersioning, validate
-
Field Details
-
schema
protected final org.apache.avro.Schema schema
-
-
Constructor Details
-
AvroBaseStructSchema
-
-
Method Details
-
getAvroSchema
public org.apache.avro.Schema getAvroSchema() -
getNativeSchema
-