Class AVROUtils
java.lang.Object
com.amazonaws.services.schemaregistry.utils.AVROUtils
-
Method Summary
Modifier and TypeMethodDescriptionstatic AVROUtilsThread safe singleton instance of the AVROUtil Class.org.apache.avro.SchemaReturns the schema Object.getSchemaDefinition(@NonNull Object object) Get the schema definition.org.apache.avro.SchemaparseSchema(@NonNull String schema) Parses AVRO Schema from a string
-
Method Details
-
getInstance
Thread safe singleton instance of the AVROUtil Class.- Returns:
- Avro util instance.
AVROUtils.
-
getSchemaDefinition
Get the schema definition.- Parameters:
object- object for which schema definition has to be derived- Returns:
- schema string
-
getSchema
Returns the schema Object.- Parameters:
object- object is given by the Kafka.- Returns:
- schema Object
Schema.
-
parseSchema
Parses AVRO Schema from a string- Parameters:
schema- AVRO schema definition- Returns:
-