Class LongDecode

java.lang.Object
io.trino.orc.stream.LongDecode

public final class LongDecode extends Object
  • Method Details

    • decodeBitWidth

      public static int decodeBitWidth(int n)
      Decodes the ordinal fixed bit value to actual fixed bit width value.
    • getClosestFixedBits

      public static int getClosestFixedBits(int width)
      Gets the closest supported fixed bit width for the specified bit width.
    • readSignedVInt

      public static long readSignedVInt(OrcInputStream inputStream) throws IOException
      Throws:
      IOException
    • readVInt

      public static long readVInt(boolean signed, OrcInputStream inputStream) throws IOException
      Throws:
      IOException
    • zigzagDecode

      public static long zigzagDecode(long value)
    • writeVLong

      public static void writeVLong(io.airlift.slice.SliceOutput buffer, long value, boolean signed)