public abstract class AvroTypeConverterWithStrictJavaTypeCheck<T> extends java.lang.Object implements AvroTypeConverter
AvroTypeConverter.Incompatible| Modifier | Constructor and Description |
|---|---|
protected |
AvroTypeConverterWithStrictJavaTypeCheck(java.lang.Class<T> javaType) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
convert(org.apache.avro.Schema.Field field,
org.apache.avro.Schema schema,
java.lang.Object jsonValue,
java.util.Deque<java.lang.String> path,
boolean silently)
convert the json jsonValue to the avro jsonValue
|
abstract java.lang.Object |
convertValue(org.apache.avro.Schema.Field field,
org.apache.avro.Schema schema,
T value,
java.util.Deque<java.lang.String> path,
boolean silently) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcanManage, isLogicalTypeprotected AvroTypeConverterWithStrictJavaTypeCheck(java.lang.Class<T> javaType)
public java.lang.Object convert(org.apache.avro.Schema.Field field,
org.apache.avro.Schema schema,
java.lang.Object jsonValue,
java.util.Deque<java.lang.String> path,
boolean silently)
AvroTypeConverterconvert in interface AvroTypeConverterfield - the field to convertschema - the schema of the fieldjsonValue - the json jsonValuepath - the path of the fieldsilently - should be false to throw an error in case of incompatible java type for the avro typepublic abstract java.lang.Object convertValue(org.apache.avro.Schema.Field field,
org.apache.avro.Schema schema,
T value,
java.util.Deque<java.lang.String> path,
boolean silently)