public class MapConverter extends AvroTypeConverterWithStrictJavaTypeCheck<java.util.Map>
AvroTypeConverter.Incompatible| Constructor and Description |
|---|
MapConverter(JsonToAvroReader recordRecord) |
| 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.util.Map jsonValue,
java.util.Deque<java.lang.String> path,
boolean silently) |
convertclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitisLogicalTypepublic MapConverter(JsonToAvroReader recordRecord)
public java.lang.Object convertValue(org.apache.avro.Schema.Field field,
org.apache.avro.Schema schema,
java.util.Map jsonValue,
java.util.Deque<java.lang.String> path,
boolean silently)
convertValue in class AvroTypeConverterWithStrictJavaTypeCheck<java.util.Map>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