Class AVROUtils
- java.lang.Object
-
- com.amazonaws.services.schemaregistry.utils.AVROUtils
-
public final class AVROUtils extends Object
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static AVROUtilsgetInstance()Thread safe singleton instance of the AVROUtil Class.org.apache.avro.SchemagetSchema(@NonNull Object object)Returns the schema Object.StringgetSchemaDefinition(@NonNull Object object)Get the schema definition.org.apache.avro.SchemaparseSchema(@NonNull String schema)Parses AVRO Schema from a string
-
-
-
Method Detail
-
getInstance
public static AVROUtils getInstance()
Thread safe singleton instance of the AVROUtil Class.- Returns:
- Avro util instance.
AVROUtils.
-
getSchemaDefinition
public String getSchemaDefinition(@NonNull @NonNull Object object)
Get the schema definition.- Parameters:
object- object for which schema definition has to be derived- Returns:
- schema string
-
getSchema
public org.apache.avro.Schema getSchema(@NonNull @NonNull Object object)Returns the schema Object.- Parameters:
object- object is given by the Kafka.- Returns:
- schema Object
Schema.
-
parseSchema
public org.apache.avro.Schema parseSchema(@NonNull @NonNull String schema)Parses AVRO Schema from a string- Parameters:
schema- AVRO schema definition- Returns:
-
-