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 int |
getIndexPosition(OrcProto.ColumnEncoding.Kind columnEncoding,
OrcProto.Type.Kind 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 void |
readDirect(org.apache.hadoop.fs.FSDataInputStream file,
int len,
ByteBuffer directBuf) |
public static int getIndexPosition(OrcProto.ColumnEncoding.Kind columnEncoding, OrcProto.Type.Kind 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 file compressedhasNulls - does the column have a PRESENT stream?public static void readDirect(org.apache.hadoop.fs.FSDataInputStream file,
int len,
ByteBuffer directBuf)
throws IOException
IOExceptionCopyright © 2015 The Apache Software Foundation. All rights reserved.