| Constructor and Description |
|---|
ReaderImpl(org.apache.hadoop.fs.FileSystem fs,
org.apache.hadoop.fs.Path path,
org.apache.hadoop.conf.Configuration conf) |
| Modifier and Type | Method and Description |
|---|---|
CompressionKind |
getCompression()
Get the compression kind.
|
int |
getCompressionSize()
Get the buffer size for the compression.
|
long |
getContentLength()
Get the length of the file.
|
Iterable<String> |
getMetadataKeys()
Get the user metadata keys.
|
ByteBuffer |
getMetadataValue(String key)
Get a user metadata value.
|
long |
getNumberOfRows()
Get the number of rows in the file.
|
org.apache.hadoop.hive.serde2.objectinspector.ObjectInspector |
getObjectInspector()
Get the object inspector for looking at the objects.
|
long |
getRawDataSize()
Get the raw size of the data in the file
|
int |
getRowIndexStride()
Get the number of rows per a entry in the row index.
|
ColumnStatistics[] |
getStatistics()
Get the statistics about the columns in the file.
|
Iterable<StripeInformation> |
getStripes()
Get the list of stripes.
|
List<OrcProto.Type> |
getTypes()
Get the list of types contained in the file.
|
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.
|
StripeReader |
stripes(long offset,
long length)
Create a StripeReader that will start reading at the first stripe after
offset up to the stripe that starts at offset + length.
|
public ReaderImpl(org.apache.hadoop.fs.FileSystem fs,
org.apache.hadoop.fs.Path path,
org.apache.hadoop.conf.Configuration conf)
throws IOException
IOExceptionpublic long getNumberOfRows()
ReadergetNumberOfRows in interface Readerpublic long getRawDataSize()
ReadergetRawDataSize in interface Readerpublic Iterable<String> getMetadataKeys()
ReadergetMetadataKeys in interface Readerpublic ByteBuffer getMetadataValue(String key)
ReadergetMetadataValue in interface Readerkey - a key given by the userpublic CompressionKind getCompression()
ReadergetCompression in interface Readerpublic int getCompressionSize()
ReadergetCompressionSize in interface Readerpublic Iterable<StripeInformation> getStripes()
ReadergetStripes in interface Readerpublic org.apache.hadoop.hive.serde2.objectinspector.ObjectInspector getObjectInspector()
ReadergetObjectInspector in interface Readerpublic long getContentLength()
ReadergetContentLength in interface Readerpublic List<OrcProto.Type> getTypes()
Readerpublic int getRowIndexStride()
ReadergetRowIndexStride in interface Readerpublic ColumnStatistics[] getStatistics()
ReadergetStatistics in interface Readerpublic RecordReader rows(boolean[] include) throws IOException
Readerrows in interface Readerinclude - true for each column that should be includedIOExceptionpublic RecordReader rows(long offset, long length, boolean[] include) throws IOException
Readerrows in interface Readeroffset - a byte offset in the filelength - a number of bytes in the fileinclude - true for each column that should be includedIOExceptionpublic StripeReader stripes(long offset, long length) throws IOException
Readerstripes in interface Readeroffset - a byte offset in the filelength - a number of bytes in the fileIOExceptionCopyright © 2013–2021. All rights reserved.