Class PulsarJsonFieldDecoder.JsonValueProvider
java.lang.Object
io.prestosql.decoder.FieldValueProvider
org.apache.pulsar.sql.presto.decoder.json.PulsarJsonFieldDecoder.JsonValueProvider
- Enclosing class:
- PulsarJsonFieldDecoder
public static class PulsarJsonFieldDecoder.JsonValueProvider
extends io.prestosql.decoder.FieldValueProvider
JsonValueProvider.
-
Constructor Summary
ConstructorsConstructorDescriptionJsonValueProvider(com.fasterxml.jackson.databind.JsonNode value, io.prestosql.decoder.DecoderColumnHandle columnHandle, long minValue, long maxValue) -
Method Summary
Modifier and TypeMethodDescriptionio.prestosql.spi.block.BlockgetBlock()booleanstatic booleangetBoolean(com.fasterxml.jackson.databind.JsonNode value, io.prestosql.spi.type.Type type, String columnName) doublestatic doublegetDouble(com.fasterxml.jackson.databind.JsonNode value, io.prestosql.spi.type.Type type, String columnName) longgetLong()static longgetLong(com.fasterxml.jackson.databind.JsonNode value, io.prestosql.spi.type.Type type, String columnName, long minValue, long maxValue) io.airlift.slice.SlicegetSlice()final booleanisNull()
-
Constructor Details
-
JsonValueProvider
public JsonValueProvider(com.fasterxml.jackson.databind.JsonNode value, io.prestosql.decoder.DecoderColumnHandle columnHandle, long minValue, long maxValue)
-
-
Method Details
-
isNull
public final boolean isNull()- Specified by:
isNullin classio.prestosql.decoder.FieldValueProvider
-
getBoolean
public boolean getBoolean()- Overrides:
getBooleanin classio.prestosql.decoder.FieldValueProvider
-
getLong
public long getLong()- Overrides:
getLongin classio.prestosql.decoder.FieldValueProvider
-
getDouble
public double getDouble()- Overrides:
getDoublein classio.prestosql.decoder.FieldValueProvider
-
getSlice
public io.airlift.slice.Slice getSlice()- Overrides:
getSlicein classio.prestosql.decoder.FieldValueProvider
-
getBlock
public io.prestosql.spi.block.Block getBlock()- Overrides:
getBlockin classio.prestosql.decoder.FieldValueProvider
-
getBoolean
public static boolean getBoolean(com.fasterxml.jackson.databind.JsonNode value, io.prestosql.spi.type.Type type, String columnName) -
getLong
public static long getLong(com.fasterxml.jackson.databind.JsonNode value, io.prestosql.spi.type.Type type, String columnName, long minValue, long maxValue) -
getDouble
public static double getDouble(com.fasterxml.jackson.databind.JsonNode value, io.prestosql.spi.type.Type type, String columnName)
-