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
IOException
public 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>
IOException
protected boolean nextStripe(OrcFileKeyWrapper keyWrapper, OrcFileValueWrapper valueWrapper) throws IOException
IOException
public float getProgress() throws IOException
getProgress
in interface org.apache.hadoop.mapred.RecordReader<OrcFileKeyWrapper,OrcFileValueWrapper>
IOException
public long getPos() throws IOException
getPos
in interface org.apache.hadoop.mapred.RecordReader<OrcFileKeyWrapper,OrcFileValueWrapper>
IOException
protected void seek(long pos) throws IOException
IOException
public long getStart()
public void close() throws IOException
close
in interface org.apache.hadoop.mapred.RecordReader<OrcFileKeyWrapper,OrcFileValueWrapper>
IOException
Copyright © 2017 The Apache Software Foundation. All rights reserved.