Class MapConverter
java.lang.Object
tech.allegro.schema.json2avro.converter.types.AvroTypeConverterWithStrictJavaTypeCheck<Map>
tech.allegro.schema.json2avro.converter.types.MapConverter
- 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, Map jsonValue, Deque<String> path, boolean silently) Methods inherited from class tech.allegro.schema.json2avro.converter.types.AvroTypeConverterWithStrictJavaTypeCheck
convert
-
Constructor Details
-
MapConverter
-
-
Method Details
-
convertValue
public Object convertValue(org.apache.avro.Schema.Field field, org.apache.avro.Schema schema, Map jsonValue, Deque<String> path, boolean silently) - Specified by:
convertValuein classAvroTypeConverterWithStrictJavaTypeCheck<Map>
-
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
-