Class MultiVersionAvroReader<T>
java.lang.Object
org.apache.pulsar.client.impl.schema.reader.AbstractMultiVersionReader<T>
org.apache.pulsar.client.impl.schema.reader.AbstractMultiVersionAvroBaseReader<T>
org.apache.pulsar.client.impl.schema.reader.MultiVersionAvroReader<T>
- All Implemented Interfaces:
SchemaReader<T>
A multi version avro reader.
-
Field Summary
FieldsFields inherited from class org.apache.pulsar.client.impl.schema.reader.AbstractMultiVersionAvroBaseReader
readerSchema
Fields inherited from class org.apache.pulsar.client.impl.schema.reader.AbstractMultiVersionReader
providerSchemaReader, schemaInfoProvider
-
Constructor Summary
ConstructorsConstructorDescriptionMultiVersionAvroReader
(org.apache.avro.Schema readerSchema, ClassLoader pojoClassLoader, boolean jsr310ConversionEnabled) -
Method Summary
Modifier and TypeMethodDescriptionprotected SchemaReader<T>
loadReader
(BytesSchemaVersion schemaVersion) Load the schema reader for reading messages encoded by the given schema version.Methods inherited from class org.apache.pulsar.client.impl.schema.reader.AbstractMultiVersionReader
getSchemaInfoByVersion, getSchemaReader, read, read, read, read, setSchemaInfoProvider
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.apache.pulsar.client.api.schema.SchemaReader
getNativeSchema, read
-
Field Details
-
LOG
protected static final org.slf4j.Logger LOG
-
-
Constructor Details
-
MultiVersionAvroReader
public MultiVersionAvroReader(org.apache.avro.Schema readerSchema, ClassLoader pojoClassLoader, boolean jsr310ConversionEnabled)
-
-
Method Details
-
loadReader
Description copied from class:AbstractMultiVersionReader
Load the schema reader for reading messages encoded by the given schema version.- Specified by:
loadReader
in classAbstractMultiVersionReader<T>
- Parameters:
schemaVersion
- the provided schema version- Returns:
- the schema reader for decoding messages encoded by the provided schema version.
-