public class HadoopInputFormatWrapper<K,V> extends Object implements eu.stratosphere.api.common.io.InputFormat<eu.stratosphere.types.Record,HadoopInputSplitWrapper>
| Modifier and Type | Field and Description |
|---|---|
HadoopTypeConverter<K,V> |
converter |
org.apache.hadoop.mapred.InputFormat<K,V> |
hadoopInputFormat |
org.apache.hadoop.mapred.JobConf |
jobConf |
K |
key |
org.apache.hadoop.mapred.RecordReader<K,V> |
recordReader |
V |
value |
| Constructor and Description |
|---|
HadoopInputFormatWrapper() |
HadoopInputFormatWrapper(org.apache.hadoop.mapred.InputFormat<K,V> hadoopInputFormat,
org.apache.hadoop.mapred.JobConf job,
HadoopTypeConverter<K,V> conv) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
void |
configure(eu.stratosphere.configuration.Configuration parameters) |
HadoopInputSplitWrapper[] |
createInputSplits(int minNumSplits) |
org.apache.hadoop.mapred.InputFormat<K,V> |
getHadoopInputFormat() |
Class<? extends HadoopInputSplitWrapper> |
getInputSplitType() |
org.apache.hadoop.mapred.JobConf |
getJobConf() |
eu.stratosphere.api.common.io.statistics.BaseStatistics |
getStatistics(eu.stratosphere.api.common.io.statistics.BaseStatistics cachedStatistics) |
eu.stratosphere.types.Record |
nextRecord(eu.stratosphere.types.Record record) |
void |
open(HadoopInputSplitWrapper split) |
boolean |
reachedEnd() |
void |
setHadoopInputFormat(org.apache.hadoop.mapred.InputFormat<K,V> hadoopInputFormat) |
void |
setJobConf(org.apache.hadoop.mapred.JobConf job) |
public HadoopTypeConverter<K,V> converter
public org.apache.hadoop.mapred.JobConf jobConf
public transient K key
public transient V value
public HadoopInputFormatWrapper()
public HadoopInputFormatWrapper(org.apache.hadoop.mapred.InputFormat<K,V> hadoopInputFormat, org.apache.hadoop.mapred.JobConf job, HadoopTypeConverter<K,V> conv)
public void configure(eu.stratosphere.configuration.Configuration parameters)
configure in interface eu.stratosphere.api.common.io.InputFormat<eu.stratosphere.types.Record,HadoopInputSplitWrapper>public eu.stratosphere.api.common.io.statistics.BaseStatistics getStatistics(eu.stratosphere.api.common.io.statistics.BaseStatistics cachedStatistics)
throws IOException
getStatistics in interface eu.stratosphere.api.common.io.InputFormat<eu.stratosphere.types.Record,HadoopInputSplitWrapper>IOExceptionpublic HadoopInputSplitWrapper[] createInputSplits(int minNumSplits) throws IOException
createInputSplits in interface eu.stratosphere.api.common.io.InputFormat<eu.stratosphere.types.Record,HadoopInputSplitWrapper>IOExceptionpublic Class<? extends HadoopInputSplitWrapper> getInputSplitType()
getInputSplitType in interface eu.stratosphere.api.common.io.InputFormat<eu.stratosphere.types.Record,HadoopInputSplitWrapper>public void open(HadoopInputSplitWrapper split) throws IOException
open in interface eu.stratosphere.api.common.io.InputFormat<eu.stratosphere.types.Record,HadoopInputSplitWrapper>IOExceptionpublic boolean reachedEnd()
throws IOException
reachedEnd in interface eu.stratosphere.api.common.io.InputFormat<eu.stratosphere.types.Record,HadoopInputSplitWrapper>IOExceptionpublic eu.stratosphere.types.Record nextRecord(eu.stratosphere.types.Record record)
throws IOException
nextRecord in interface eu.stratosphere.api.common.io.InputFormat<eu.stratosphere.types.Record,HadoopInputSplitWrapper>IOExceptionpublic void close()
throws IOException
close in interface eu.stratosphere.api.common.io.InputFormat<eu.stratosphere.types.Record,HadoopInputSplitWrapper>IOExceptionpublic void setJobConf(org.apache.hadoop.mapred.JobConf job)
public void setHadoopInputFormat(org.apache.hadoop.mapred.InputFormat<K,V> hadoopInputFormat)
public org.apache.hadoop.mapred.JobConf getJobConf()
Copyright © 2013–2014. All rights reserved.