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 retrievedSchema
public org.apache.avro.Schema retrieveReaderSchema(Object source)
source
- source from which the schema has to retrievedSchema
public int getOffset()
Defaulted to zero. Consumers can choose to override this value to provide a custom offset.
Copyright © 2017 The Apache Software Foundation. All rights reserved.