Interface SchemaConverter
-
- All Known Implementing Classes:
AvroConverter,AvroNoWrappingConverter,JsonSchemaConverter,ProtobufConverter
public interface SchemaConverterProvides conversion of JSON to/from an object for a specific schema type.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classSchemaConverter.JsonNodeAndSize
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description SchemaConverter.JsonNodeAndSizetoJson(Object value)Converts data (including primitive types) to their equivalent JsonNode representation.
-
-
-
Method Detail
-
toJson
SchemaConverter.JsonNodeAndSize toJson(Object value)
Converts data (including primitive types) to their equivalent JsonNode representation.- Parameters:
value- the value to convert- Returns:
- an object containing the root JsonNode representing the converted object and the size in bytes of the data when serialized
-
-