public class MRReaderMapred extends MRReader
Modifier and Type | Field and Description |
---|---|
protected org.apache.hadoop.mapred.InputSplit |
inputSplit |
protected org.apache.hadoop.mapred.RecordReader |
recordReader |
Constructor and Description |
---|
MRReaderMapred(org.apache.hadoop.mapred.JobConf jobConf,
org.apache.hadoop.mapred.InputSplit inputSplit,
org.apache.tez.common.counters.TezCounters tezCounters,
org.apache.tez.common.counters.TezCounter inputRecordCounter,
org.apache.tez.runtime.api.InputContext context) |
MRReaderMapred(org.apache.hadoop.mapred.JobConf jobConf,
org.apache.tez.common.counters.TezCounters tezCounters,
org.apache.tez.common.counters.TezCounter inputRecordCounter,
org.apache.tez.runtime.api.InputContext context) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
org.apache.hadoop.conf.Configuration |
getConfigUpdates()
MRInput sets some additional parameters like split location when using the new API. |
Object |
getCurrentKey() |
Object |
getCurrentValue() |
float |
getProgress() |
Object |
getRecordReader() |
Object |
getSplit() |
boolean |
isSetup() |
boolean |
next() |
void |
setSplit(Object inputSplit) |
notifyDone, notifyProgress
protected org.apache.hadoop.mapred.InputSplit inputSplit
protected org.apache.hadoop.mapred.RecordReader recordReader
public MRReaderMapred(org.apache.hadoop.mapred.JobConf jobConf, org.apache.tez.common.counters.TezCounters tezCounters, org.apache.tez.common.counters.TezCounter inputRecordCounter, org.apache.tez.runtime.api.InputContext context) throws IOException
IOException
public MRReaderMapred(org.apache.hadoop.mapred.JobConf jobConf, org.apache.hadoop.mapred.InputSplit inputSplit, org.apache.tez.common.counters.TezCounters tezCounters, org.apache.tez.common.counters.TezCounter inputRecordCounter, org.apache.tez.runtime.api.InputContext context) throws IOException
IOException
public void setSplit(Object inputSplit) throws IOException
setSplit
in class MRReader
IOException
public float getProgress() throws IOException, InterruptedException
getProgress
in class MRReader
IOException
InterruptedException
public void close() throws IOException
close
in class MRReader
IOException
public Object getRecordReader()
getRecordReader
in class MRReader
public boolean next() throws IOException
next
in class org.apache.tez.runtime.library.api.KeyValueReader
IOException
public Object getCurrentKey() throws IOException
getCurrentKey
in class org.apache.tez.runtime.library.api.KeyValueReader
IOException
public Object getCurrentValue() throws IOException
getCurrentValue
in class org.apache.tez.runtime.library.api.KeyValueReader
IOException
public org.apache.hadoop.conf.Configuration getConfigUpdates()
MRInput
sets some additional parameters like split location when using the new API.
This methods returns the list of additional updates, and should be used by Processors using the
old MapReduce API with MRInput
.MRInput
Copyright © 2017 Apache Software Foundation. All rights reserved.