public class RecordReaderUtils extends Object
Modifier and Type | Class and Description |
---|---|
static class |
RecordReaderUtils.ByteBufferAllocatorPool |
Constructor and Description |
---|
RecordReaderUtils() |
Modifier and Type | Method and Description |
---|---|
static DataReader |
createDefaultDataReader(DataReaderProperties properties) |
static long |
estimateRgEndOffset(boolean isCompressed,
int bufferSize,
boolean isLast,
long nextGroupOffset,
long streamLength) |
static int |
getIndexPosition(OrcProto.ColumnEncoding.Kind columnEncoding,
TypeDescription.Category columnType,
OrcProto.Stream.Kind streamType,
boolean isCompressed,
boolean hasNulls)
Get the offset in the index positions for the column that the given
stream starts.
|
static boolean |
isDictionary(OrcProto.Stream.Kind kind,
OrcProto.ColumnEncoding encoding)
Is this stream part of a dictionary?
|
static String |
stringifyDiskRanges(DiskRangeList range)
Build a string representation of a list of disk ranges.
|
public static DataReader createDefaultDataReader(DataReaderProperties properties)
public static long estimateRgEndOffset(boolean isCompressed, int bufferSize, boolean isLast, long nextGroupOffset, long streamLength)
public static int getIndexPosition(OrcProto.ColumnEncoding.Kind columnEncoding, TypeDescription.Category columnType, OrcProto.Stream.Kind streamType, boolean isCompressed, boolean hasNulls)
columnEncoding
- the encoding of the columncolumnType
- the type of the columnstreamType
- the kind of the streamisCompressed
- is the stream compressed?hasNulls
- does the column have a PRESENT stream?public static boolean isDictionary(OrcProto.Stream.Kind kind, OrcProto.ColumnEncoding encoding)
public static String stringifyDiskRanges(DiskRangeList range)
range
- ranges to stringifyCopyright © 2013–2023 The Apache Software Foundation. All rights reserved.