AvroSerializerProvider Interface
public interface AvroSerializerProvider
An interface to be implemented by any azure-core plugin that wishes to provide an Avro AvroSerializer implementation.
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
abstract
Avro |
createInstance(String schema)
Creates a new AvroSerializer tied to the given schema. |
| abstract String |
getSchema(Object object)
Returns the Avro schema for specified object. |
| abstract String |
getSchemaName(Object object)
Returns the Avro schema for specified object. |
Method Details
createInstance
public abstract AvroSerializer createInstance(String schema)
Creates a new AvroSerializer tied to the given schema.
Parameters:
Returns:
getSchema
public abstract String getSchema(Object object)
Returns the Avro schema for specified object.
Parameters:
Returns:
getSchemaName
public abstract String getSchemaName(Object object)
Returns the Avro schema for specified object.
Parameters:
Returns: