Class AvroDefaultValueConverter
java.lang.Object
io.confluent.kafka.schemaregistry.type.logical.avro.AvroDefaultValueConverter
Utility class to convert Avro default values to Java data objects.
-
Method Summary
Modifier and TypeMethodDescriptionstatic ObjecttoAvroData(Schema type, Object value) Encode a typed Java default value into the Avro-friendly form expected by org.apache.avro.Schema.Field's defaultVal argument.static ObjecttoJavaData(Schema type, Object defaultValue) Converts an Avro default value to a Java data object based on the logical type schema.
-
Method Details
-
toJavaData
Converts an Avro default value to a Java data object based on the logical type schema. -
toAvroData
Encode a typed Java default value into the Avro-friendly form expected by org.apache.avro.Schema.Field's defaultVal argument.
-