Package io.prestosql.decoder.json
Class DefaultJsonFieldDecoder
- java.lang.Object
-
- io.prestosql.decoder.json.DefaultJsonFieldDecoder
-
- All Implemented Interfaces:
JsonFieldDecoder
public class DefaultJsonFieldDecoder extends java.lang.Object implements JsonFieldDecoder
Default field decoder for the JSON format. Supports json format coercions to implicitly convert e.g. string to long values.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classDefaultJsonFieldDecoder.JsonValueProvider
-
Constructor Summary
Constructors Constructor Description DefaultJsonFieldDecoder(DecoderColumnHandle columnHandle)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description FieldValueProviderdecode(com.fasterxml.jackson.databind.JsonNode value)
-
-
-
Constructor Detail
-
DefaultJsonFieldDecoder
public DefaultJsonFieldDecoder(DecoderColumnHandle columnHandle)
-
-
Method Detail
-
decode
public FieldValueProvider decode(com.fasterxml.jackson.databind.JsonNode value)
- Specified by:
decodein interfaceJsonFieldDecoder
-
-