Class ArrayConverter
java.lang.Object
tech.allegro.schema.json2avro.converter.types.AvroTypeConverterWithStrictJavaTypeCheck<Collection>
tech.allegro.schema.json2avro.converter.types.ArrayConverter
- All Implemented Interfaces:
AvroTypeConverter
-
Nested Class Summary
Nested classes/interfaces inherited from interface tech.allegro.schema.json2avro.converter.types.AvroTypeConverter
AvroTypeConverter.Incompatible -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanused to know if this class can convert the json value to the avro valueconvertValue(org.apache.avro.Schema.Field field, org.apache.avro.Schema schema, Collection value, Deque<String> path, boolean silently) Methods inherited from class tech.allegro.schema.json2avro.converter.types.AvroTypeConverterWithStrictJavaTypeCheck
convert
-
Constructor Details
-
ArrayConverter
-
-
Method Details
-
convertValue
public Object convertValue(org.apache.avro.Schema.Field field, org.apache.avro.Schema schema, Collection value, Deque<String> path, boolean silently) - Specified by:
convertValuein classAvroTypeConverterWithStrictJavaTypeCheck<Collection>
-
canManage
Description copied from interface:AvroTypeConverterused to know if this class can convert the json value to the avro value- Parameters:
schema- 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- Returns:
- true if this class should be used to convert the value
-