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