public interface Reader
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.
|
java.lang.Iterable<java.lang.String> |
getMetadataKeys()
Get the user metadata keys.
|
java.nio.ByteBuffer |
getMetadataValue(java.lang.String key)
Get a user metadata value.
|
long |
getNumberOfRows()
Get the number of rows in the file.
|
ObjectInspector |
getObjectInspector()
Get the object inspector for looking at the objects.
|
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.
|
java.lang.Iterable<StripeInformation> |
getStripes()
Get the list of stripes.
|
java.util.List<org.apache.hadoop.hive.ql.io.orc.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)
Deprecated.
|
RecordReader |
rows(long offset,
long length,
boolean[] include,
SearchArgument sarg,
java.lang.String[] neededColumns)
Create a RecordReader that will read a section of a file.
|
long getNumberOfRows()
java.lang.Iterable<java.lang.String> getMetadataKeys()
java.nio.ByteBuffer getMetadataValue(java.lang.String key)
key
- a key given by the userCompressionKind getCompression()
int getCompressionSize()
int getRowIndexStride()
java.lang.Iterable<StripeInformation> getStripes()
ObjectInspector getObjectInspector()
long getContentLength()
ColumnStatistics[] getStatistics()
java.util.List<org.apache.hadoop.hive.ql.io.orc.OrcProto.Type> getTypes()
RecordReader rows(boolean[] include) throws java.io.IOException
include
- true for each column that should be includedjava.io.IOException
RecordReader rows(long offset, long length, boolean[] include) throws java.io.IOException
offset
- a byte offset in the filelength
- a number of bytes in the fileinclude
- true for each column that should be includedjava.io.IOException
RecordReader rows(long offset, long length, boolean[] include, SearchArgument sarg, java.lang.String[] neededColumns) throws java.io.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 columnsjava.io.IOException
Copyright © 2012 The Apache Software Foundation