Reader.Options
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,
SearchArgument sarg,
String[] neededColumns)
Create a RecordReader that will read a section of a file.
|
RecordReader |
rowsOptions(Reader.Options options)
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, rows
ObjectInspector getObjectInspector()
CompressionKind getCompression()
RecordReader rows() throws IOException
rows
in interface Reader
IOException
RecordReader rowsOptions(Reader.Options options) throws IOException
options
- the options to useIOException
RecordReader rows(boolean[] include) throws IOException
include
- true for each column that should be includedIOException
RecordReader 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 includedIOException
RecordReader rows(long offset, long length, boolean[] include, 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 columnsIOException
Copyright © 2016 The Apache Software Foundation. All rights reserved.