public final class LongDecode extends Object
Modifier and Type | Method and Description |
---|---|
static int |
decodeBitWidth(int n)
Decodes the ordinal fixed bit value to actual fixed bit width value.
|
static int |
getClosestFixedBits(int width)
Gets the closest supported fixed bit width for the specified bit width.
|
static long |
readDwrfLong(OrcInputStream input,
OrcType.OrcTypeKind type,
boolean signed,
boolean usesVInt) |
static long |
readSignedVInt(OrcInputStream inputStream) |
static long |
readVInt(boolean signed,
OrcInputStream inputStream) |
static void |
writeVLong(io.airlift.slice.SliceOutput buffer,
long value,
boolean signed) |
static long |
zigzagDecode(long value) |
public static int decodeBitWidth(int n)
public static int getClosestFixedBits(int width)
public static long readSignedVInt(OrcInputStream inputStream) throws IOException
IOException
public static long readVInt(boolean signed, OrcInputStream inputStream) throws IOException
IOException
public static long zigzagDecode(long value)
public static long readDwrfLong(OrcInputStream input, OrcType.OrcTypeKind type, boolean signed, boolean usesVInt) throws IOException
IOException
public static void writeVLong(io.airlift.slice.SliceOutput buffer, long value, boolean signed)
Copyright © 2012–2019. All rights reserved.