public class EnumConverter extends AvroTypeConverterWithStrictJavaTypeCheck<java.lang.String>
AvroTypeConverter.Incompatible| Modifier and Type | Field and Description |
|---|---|
static AvroTypeConverter |
INSTANCE |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canManage(org.apache.avro.Schema schema,
java.util.Deque<java.lang.String> path)
used to know if this class can convert the json value to the avro value
|
java.lang.Object |
convertValue(org.apache.avro.Schema.Field field,
org.apache.avro.Schema schema,
java.lang.String value,
java.util.Deque<java.lang.String> path,
boolean silently) |
convertclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitisLogicalTypepublic static final AvroTypeConverter INSTANCE
public java.lang.Object convertValue(org.apache.avro.Schema.Field field,
org.apache.avro.Schema schema,
java.lang.String value,
java.util.Deque<java.lang.String> path,
boolean silently)
convertValue in class AvroTypeConverterWithStrictJavaTypeCheck<java.lang.String>public boolean canManage(org.apache.avro.Schema schema,
java.util.Deque<java.lang.String> path)
AvroTypeConverterschema - the avro schema in which to convert the jsonpath - the path of the current field. Can be used to define a specific converter for a path