public final class RcFileDecoderUtils extends Object
| Modifier and Type | Method and Description |
|---|---|
static int |
calculateTruncationLength(Type type,
io.airlift.slice.Slice slice,
int offset,
int length) |
static int |
decodeVIntSize(byte value) |
static int |
decodeVIntSize(io.airlift.slice.Slice slice,
int offset) |
static long |
findFirstSyncPosition(RcFileDataSource dataSource,
long offset,
long length,
long syncFirst,
long syncSecond)
Find the beginning of the first full sync sequence that starts within the specified range.
|
static boolean |
isNegativeVInt(byte value) |
static boolean |
isNegativeVInt(io.airlift.slice.Slice slice,
int offset) |
static long |
readVInt(io.airlift.slice.SliceInput in) |
static long |
readVInt(io.airlift.slice.Slice slice,
int start) |
static long |
readVInt(io.airlift.slice.Slice slice,
int start,
int length) |
static void |
writeLengthPrefixedString(io.airlift.slice.SliceOutput out,
io.airlift.slice.Slice slice) |
static void |
writeVInt(io.airlift.slice.SliceOutput out,
int value) |
static void |
writeVLong(io.airlift.slice.SliceOutput out,
long value) |
public static int decodeVIntSize(io.airlift.slice.Slice slice,
int offset)
public static int decodeVIntSize(byte value)
public static boolean isNegativeVInt(io.airlift.slice.Slice slice,
int offset)
public static boolean isNegativeVInt(byte value)
public static long readVInt(io.airlift.slice.SliceInput in)
public static long readVInt(io.airlift.slice.Slice slice,
int start)
public static long readVInt(io.airlift.slice.Slice slice,
int start,
int length)
public static long findFirstSyncPosition(RcFileDataSource dataSource, long offset, long length, long syncFirst, long syncSecond) throws IOException
IOExceptionpublic static void writeLengthPrefixedString(io.airlift.slice.SliceOutput out,
io.airlift.slice.Slice slice)
public static void writeVInt(io.airlift.slice.SliceOutput out,
int value)
public static void writeVLong(io.airlift.slice.SliceOutput out,
long value)
public static int calculateTruncationLength(Type type, io.airlift.slice.Slice slice, int offset, int length)
Copyright © 2012–2022. All rights reserved.