Class GenericAvroReader
java.lang.Object
org.apache.pulsar.client.impl.schema.generic.GenericAvroReader
- All Implemented Interfaces:
SchemaReader<GenericRecord>
-
Constructor Summary
ConstructorsConstructorDescriptionGenericAvroReader
(org.apache.avro.Schema schema) GenericAvroReader
(org.apache.avro.Schema writerSchema, org.apache.avro.Schema readerSchema, byte[] schemaVersion) -
Method Summary
Modifier and TypeMethodDescriptionint
read
(byte[] bytes, int offset, int length) read
(InputStream inputStream) 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
read, read, read, setSchemaInfoProvider
-
Constructor Details
-
GenericAvroReader
public GenericAvroReader(org.apache.avro.Schema schema) -
GenericAvroReader
public GenericAvroReader(org.apache.avro.Schema writerSchema, org.apache.avro.Schema readerSchema, byte[] schemaVersion)
-
-
Method Details
-
read
- Specified by:
read
in interfaceSchemaReader<GenericRecord>
-
read
- Specified by:
read
in interfaceSchemaReader<GenericRecord>
-
getOffset
public int getOffset() -
getNativeSchema
- Specified by:
getNativeSchema
in interfaceSchemaReader<GenericRecord>
-