public final class AvroSerializerProviders extends Object
AvroSerializerProvider.| Modifier and Type | Method and Description |
|---|---|
static AvroSerializer |
createInstance(String schema)
Creates an Avro serializer instance based using the first
AvroSerializerProvider found on the classpath. |
static String |
getSchema(Object object)
Returns the Avro schema for specified object.
|
static String |
getSchemaName(Object object)
Returns the Avro schema for specified object.
|
public static AvroSerializer createInstance(String schema)
AvroSerializerProvider found on the classpath.schema - Schema tied to the Avro serializer for its lifetime.AvroSerializer instance tied to the passed schema.public static String getSchema(Object object)
object - The object having its Avro schema retrieved.IllegalArgumentException - If the object is an unsupported type.public static 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.