Interface AvroSerializerProvider
-
public interface AvroSerializerProviderAn interface to be implemented by any azure-core plugin that wishes to provide an AvroAvroSerializerimplementation.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description AvroSerializercreateInstance(String schema)Creates a newAvroSerializertied to the given schema.StringgetSchema(Object object)Returns the Avro schema for specified object.StringgetSchemaName(Object object)Returns the Avro schema for specified object.
-
-
-
Method Detail
-
createInstance
AvroSerializer createInstance(String schema)
Creates a newAvroSerializertied to the given schema.- Parameters:
schema- The Avro schema that will be associated to the serializer.- Returns:
- A new
AvroSerializerinstance.
-
getSchema
String getSchema(Object object)
Returns the Avro schema for specified object.- Parameters:
object- The object having its Avro schema retrieved.- Returns:
- The Avro schema for the object.
- Throws:
IllegalArgumentException- If the object is an unsupported type.
-
getSchemaName
String getSchemaName(Object object)
Returns the Avro schema for specified object.- Parameters:
object- The object having its Avro schema name retrieved.- Returns:
- The Avro schema name for the object.
- Throws:
IllegalArgumentException- If the object is an unsupported type.
-
-