public class RecordReaderUtils extends Object
NOTE: The file was copied and modified to support VectoredReadable
.
Modifier and Type | Class and Description |
---|---|
static class |
RecordReaderUtils.ByteBufferAllocatorPool
this is an implementation copied from ElasticByteBufferPool in hadoop-2, which lacks a
clear()/clean() operation.
|
Constructor and Description |
---|
RecordReaderUtils() |
Modifier and Type | Method and Description |
---|---|
static org.apache.orc.DataReader |
createDefaultDataReader(org.apache.orc.impl.DataReaderProperties properties) |
static long |
estimateRgEndOffset(boolean isCompressed,
int bufferSize,
boolean isLast,
long nextGroupOffset,
long streamLength) |
static int |
getIndexPosition(org.apache.orc.OrcProto.ColumnEncoding.Kind columnEncoding,
org.apache.orc.TypeDescription.Category columnType,
org.apache.orc.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(org.apache.orc.OrcProto.Stream.Kind kind,
org.apache.orc.OrcProto.ColumnEncoding encoding)
Is this stream part of a dictionary?
|
static String |
stringifyDiskRanges(org.apache.hadoop.hive.common.io.DiskRangeList range)
Build a string representation of a list of disk ranges.
|
public static org.apache.orc.DataReader createDefaultDataReader(org.apache.orc.impl.DataReaderProperties properties)
public static long estimateRgEndOffset(boolean isCompressed, int bufferSize, boolean isLast, long nextGroupOffset, long streamLength)
public static int getIndexPosition(org.apache.orc.OrcProto.ColumnEncoding.Kind columnEncoding, org.apache.orc.TypeDescription.Category columnType, org.apache.orc.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(org.apache.orc.OrcProto.Stream.Kind kind, org.apache.orc.OrcProto.ColumnEncoding encoding)
public static String stringifyDiskRanges(org.apache.hadoop.hive.common.io.DiskRangeList range)
range
- ranges to stringifyCopyright © 2023–2024 The Apache Software Foundation. All rights reserved.