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

    Constructors
    Constructor
    Description
    JsonValueProvider(com.fasterxml.jackson.databind.JsonNode value, io.prestosql.decoder.DecoderColumnHandle columnHandle, long minValue, long maxValue)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    io.prestosql.spi.block.Block
     
    boolean
     
    static boolean
    getBoolean(com.fasterxml.jackson.databind.JsonNode value, io.prestosql.spi.type.Type type, String columnName)
     
    double
     
    static double
    getDouble(com.fasterxml.jackson.databind.JsonNode value, io.prestosql.spi.type.Type type, String columnName)
     
    long
     
    static long
    getLong(com.fasterxml.jackson.databind.JsonNode value, io.prestosql.spi.type.Type type, String columnName, long minValue, long maxValue)
     
    io.airlift.slice.Slice
     
    final boolean
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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:
      isNull in class io.prestosql.decoder.FieldValueProvider
    • getBoolean

      public boolean getBoolean()
      Overrides:
      getBoolean in class io.prestosql.decoder.FieldValueProvider
    • getLong

      public long getLong()
      Overrides:
      getLong in class io.prestosql.decoder.FieldValueProvider
    • getDouble

      public double getDouble()
      Overrides:
      getDouble in class io.prestosql.decoder.FieldValueProvider
    • getSlice

      public io.airlift.slice.Slice getSlice()
      Overrides:
      getSlice in class io.prestosql.decoder.FieldValueProvider
    • getBlock

      public io.prestosql.spi.block.Block getBlock()
      Overrides:
      getBlock in class io.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)