Class PulsarJsonFieldDecoder
java.lang.Object
org.apache.pulsar.sql.presto.decoder.json.PulsarJsonFieldDecoder
- All Implemented Interfaces:
io.prestosql.decoder.json.JsonFieldDecoder
public class PulsarJsonFieldDecoder
extends Object
implements io.prestosql.decoder.json.JsonFieldDecoder
Copy from
DefaultJsonFieldDecoder (presto-record-decoder-345)
with some pulsar's extensions.
1) support ArrayType.
2) support MapType.
3) support RowType.
4) support TimestampType,DateType,
TimeType.
5) support RealType.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classJsonValueProvider. -
Constructor Summary
ConstructorsConstructorDescriptionPulsarJsonFieldDecoder(io.prestosql.decoder.DecoderColumnHandle columnHandle) -
Method Summary
Modifier and TypeMethodDescriptionio.prestosql.decoder.FieldValueProviderdecode(com.fasterxml.jackson.databind.JsonNode value)
-
Constructor Details
-
PulsarJsonFieldDecoder
public PulsarJsonFieldDecoder(io.prestosql.decoder.DecoderColumnHandle columnHandle)
-
-
Method Details
-
decode
public io.prestosql.decoder.FieldValueProvider decode(com.fasterxml.jackson.databind.JsonNode value) - Specified by:
decodein interfaceio.prestosql.decoder.json.JsonFieldDecoder
-