public final class AVROUtils extends Object
| Modifier and Type | Method and Description |
|---|---|
static AVROUtils |
getInstance()
Thread safe singleton instance of the AVROUtil Class.
|
org.apache.avro.Schema |
getSchema(@NonNull Object object)
Returns the schema Object.
|
String |
getSchemaDefinition(@NonNull Object object)
Get the schema definition.
|
org.apache.avro.Schema |
parseSchema(@NonNull String schema)
Parses AVRO Schema from a string
|
public static AVROUtils getInstance()
AVROUtils.public String getSchemaDefinition(@NonNull @NonNull Object object)
object - object for which schema definition has to be derivedpublic org.apache.avro.Schema getSchema(@NonNull
@NonNull Object object)
object - object is given by the Kafka.Schema.public org.apache.avro.Schema parseSchema(@NonNull
@NonNull String schema)
schema - AVRO schema definitionCopyright © 2024. All rights reserved.