public interface AvroSerializerProvider
AvroSerializer
implementation.| Modifier and Type | Method and Description |
|---|---|
AvroSerializer |
createInstance(String schema)
Creates a new
AvroSerializer tied to the given schema. |
String |
getSchema(Object object)
Returns the Avro schema for specified object.
|
String |
getSchemaName(Object object)
Returns the Avro schema for specified object.
|
AvroSerializer createInstance(String schema)
AvroSerializer tied to the given schema.schema - The Avro schema that will be associated to the serializer.AvroSerializer instance.String getSchema(Object object)
object - The object having its Avro schema retrieved.IllegalArgumentException - If the object is an unsupported type.String getSchemaName(Object object)
object - The object having its Avro schema name retrieved.IllegalArgumentException - If the object is an unsupported type.Copyright © 2021 Microsoft Corporation. All rights reserved.