Package io.trino.orc.stream
Class LongDecode
- java.lang.Object
-
- io.trino.orc.stream.LongDecode
-
public final class LongDecode extends Object
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static intdecodeBitWidth(int n)Decodes the ordinal fixed bit value to actual fixed bit width value.static intgetClosestFixedBits(int width)Gets the closest supported fixed bit width for the specified bit width.static longreadSignedVInt(OrcInputStream inputStream)static longreadVInt(boolean signed, OrcInputStream inputStream)static voidwriteVLong(io.airlift.slice.SliceOutput buffer, long value, boolean signed)static longzigzagDecode(long value)
-
-
-
Method Detail
-
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)
-
-