public class GenericProtobufNativeReader extends Object implements SchemaReader<GenericRecord>
| Constructor and Description |
|---|
GenericProtobufNativeReader(com.google.protobuf.Descriptors.Descriptor descriptor) |
GenericProtobufNativeReader(com.google.protobuf.Descriptors.Descriptor descriptor,
byte[] schemaVersion) |
| Modifier and Type | Method and Description |
|---|---|
Optional<Object> |
getNativeSchema() |
GenericProtobufNativeRecord |
read(byte[] bytes,
int offset,
int length) |
GenericProtobufNativeRecord |
read(InputStream inputStream) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitread, read, read, setSchemaInfoProviderpublic GenericProtobufNativeReader(com.google.protobuf.Descriptors.Descriptor descriptor)
public GenericProtobufNativeReader(com.google.protobuf.Descriptors.Descriptor descriptor,
byte[] schemaVersion)
public GenericProtobufNativeRecord read(byte[] bytes, int offset, int length)
read in interface SchemaReader<GenericRecord>public GenericProtobufNativeRecord read(InputStream inputStream)
read in interface SchemaReader<GenericRecord>public Optional<Object> getNativeSchema()
getNativeSchema in interface SchemaReader<GenericRecord>Copyright © 2017–2021 Apache Software Foundation. All rights reserved.