public class OrcFileStripeMergeRecordReader extends Object implements org.apache.hadoop.mapred.RecordReader<OrcFileKeyWrapper,OrcFileValueWrapper>
| Modifier and Type | Field and Description |
|---|---|
protected Iterator<StripeInformation> |
iter |
protected List<OrcProto.StripeStatistics> |
stripeStatistics |
| Constructor and Description |
|---|
OrcFileStripeMergeRecordReader(org.apache.hadoop.conf.Configuration conf,
org.apache.hadoop.mapred.FileSplit split) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
OrcFileKeyWrapper |
createKey() |
OrcFileValueWrapper |
createValue() |
Class<?> |
getKeyClass() |
long |
getPos() |
float |
getProgress()
Default progress will be based on number of files processed.
|
long |
getStart() |
Class<?> |
getValueClass() |
boolean |
next(OrcFileKeyWrapper key,
OrcFileValueWrapper value) |
protected boolean |
nextStripe(OrcFileKeyWrapper keyWrapper,
OrcFileValueWrapper valueWrapper) |
protected void |
seek(long pos) |
protected Iterator<StripeInformation> iter
protected List<OrcProto.StripeStatistics> stripeStatistics
public OrcFileStripeMergeRecordReader(org.apache.hadoop.conf.Configuration conf,
org.apache.hadoop.mapred.FileSplit split)
throws IOException
IOExceptionpublic Class<?> getKeyClass()
public Class<?> getValueClass()
public OrcFileKeyWrapper createKey()
createKey in interface org.apache.hadoop.mapred.RecordReader<OrcFileKeyWrapper,OrcFileValueWrapper>public OrcFileValueWrapper createValue()
createValue in interface org.apache.hadoop.mapred.RecordReader<OrcFileKeyWrapper,OrcFileValueWrapper>public boolean next(OrcFileKeyWrapper key, OrcFileValueWrapper value) throws IOException
next in interface org.apache.hadoop.mapred.RecordReader<OrcFileKeyWrapper,OrcFileValueWrapper>IOExceptionprotected boolean nextStripe(OrcFileKeyWrapper keyWrapper, OrcFileValueWrapper valueWrapper) throws IOException
IOExceptionpublic float getProgress()
throws IOException
getProgress in interface org.apache.hadoop.mapred.RecordReader<OrcFileKeyWrapper,OrcFileValueWrapper>IOExceptionpublic long getPos()
throws IOException
getPos in interface org.apache.hadoop.mapred.RecordReader<OrcFileKeyWrapper,OrcFileValueWrapper>IOExceptionprotected void seek(long pos)
throws IOException
IOExceptionpublic long getStart()
public void close()
throws IOException
close in interface org.apache.hadoop.mapred.RecordReader<OrcFileKeyWrapper,OrcFileValueWrapper>IOExceptionCopyright © 2015 The Apache Software Foundation. All rights reserved.