Package io.trino.orc.stream
Class LongDecode
java.lang.Object
io.trino.orc.stream.LongDecode
-
Method Summary
Modifier and TypeMethodDescriptionstatic 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 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
- Throws:
IOException
-
readVInt
- Throws:
IOException
-
zigzagDecode
public static long zigzagDecode(long value) -
writeVLong
public static void writeVLong(io.airlift.slice.SliceOutput buffer, long value, boolean signed)
-