public interface Reader
extends org.apache.orc.Reader
| Modifier and Type | Method and Description |
|---|---|
CompressionKind |
getCompression()
Get the Compression kind in the compatibility mode.
|
ObjectInspector |
getObjectInspector()
Get the object inspector for looking at the objects.
|
RecordReader |
rows()
Create a RecordReader that reads everything with the default options.
|
RecordReader |
rows(boolean[] include)
Create a RecordReader that will scan the entire file.
|
RecordReader |
rows(long offset,
long length,
boolean[] include)
Create a RecordReader that will start reading at the first stripe after
offset up to the stripe that starts at offset + length.
|
RecordReader |
rows(long offset,
long length,
boolean[] include,
org.apache.hadoop.hive.ql.io.sarg.SearchArgument sarg,
String[] neededColumns)
Create a RecordReader that will read a section of a file.
|
RecordReader |
rowsOptions(org.apache.orc.Reader.Options options)
Create a RecordReader that reads everything with the given options.
|
RecordReader |
rowsOptions(org.apache.orc.Reader.Options options,
org.apache.hadoop.conf.Configuration conf)
Create a RecordReader that reads everything with the given options.
|
getCompressionKind, getCompressionSize, getContentLength, getFileTail, getFileVersion, getMetadataKeys, getMetadataSize, getMetadataValue, getNumberOfRows, getOrcProtoFileStatistics, getOrcProtoStripeStatistics, getRawDataSize, getRawDataSizeFromColIndices, getRawDataSizeOfColumns, getRowIndexStride, getSchema, getSerializedFileFooter, getStatistics, getStripes, getStripeStatistics, getTypes, getVersionList, getWriterVersion, hasMetadataValue, options, rowsObjectInspector getObjectInspector()
CompressionKind getCompression()
RecordReader rows() throws IOException
rows in interface org.apache.orc.ReaderIOExceptionRecordReader rowsOptions(org.apache.orc.Reader.Options options) throws IOException
options - the options to useIOExceptionRecordReader rowsOptions(org.apache.orc.Reader.Options options, org.apache.hadoop.conf.Configuration conf) throws IOException
options - the options to useconf - conf objectIOExceptionRecordReader rows(boolean[] include) throws IOException
include - true for each column that should be includedIOExceptionRecordReader rows(long offset, long length, boolean[] include) throws IOException
offset - a byte offset in the filelength - a number of bytes in the fileinclude - true for each column that should be includedIOExceptionRecordReader rows(long offset, long length, boolean[] include, org.apache.hadoop.hive.ql.io.sarg.SearchArgument sarg, String[] neededColumns) throws IOException
offset - the minimum offset of the first stripe to readlength - the distance from offset of the first address to stop reading
atinclude - true for each column that should be includedsarg - a search argument that limits the rows that should be read.neededColumns - the names of the included columnsIOExceptionCopyright © 2019 The Apache Software Foundation. All Rights Reserved.