Class TypeUtils

java.lang.Object
io.trino.spi.type.TypeUtils

public final class TypeUtils extends Object
  • Field Details

  • Method Details

    • readNativeValue

      public static Object readNativeValue(Type type, Block block, int position)
      Get the native value as an object in the value at position of block.
    • writeNativeValue

      public static ValueBlock writeNativeValue(Type type, @Nullable Object value)
    • writeNativeValue

      public static void writeNativeValue(Type type, BlockBuilder blockBuilder, @Nullable Object value)
      Write a native value object to the current entry of blockBuilder.
    • isFloatingPointNaN

      public static boolean isFloatingPointNaN(Type type, Object value)