public abstract class AvroSchemaRetriever extends Object
properties file with a simple key-value mapping to the schema. For
cases where the schema is a part of the serialized data itself, "Source" would
refer to the data bytes from which the schema has to retrieved.| Constructor and Description |
|---|
AvroSchemaRetriever() |
| Modifier and Type | Method and Description |
|---|---|
int |
getOffset()
Possible offset associated with schema.
|
org.apache.avro.Schema |
retrieveReaderSchema(Object source)
Retrieve the reader avro schema from the given source
|
abstract org.apache.avro.Schema |
retrieveWriterSchema(Object source)
Retrieve the writer avro schema from the given source
|
public abstract org.apache.avro.Schema retrieveWriterSchema(Object source)
source - source from which the schema has to retrievedSchemapublic org.apache.avro.Schema retrieveReaderSchema(Object source)
source - source from which the schema has to retrievedSchemapublic int getOffset()
Defaulted to zero. Consumers can choose to override this value to provide a custom offset.
Copyright © 2019 The Apache Software Foundation. All Rights Reserved.