public class HadoopOutputFormatWrapper<K,V> extends Object implements eu.stratosphere.api.common.io.OutputFormat<eu.stratosphere.types.Record>
| Modifier and Type | Field and Description |
|---|---|
StratosphereTypeConverter<K,V> |
converter |
FileOutputCommitterWrapper |
fileOutputCommitterWrapper |
org.apache.hadoop.mapred.OutputFormat<K,V> |
hadoopOutputFormat |
org.apache.hadoop.mapred.JobConf |
jobConf |
org.apache.hadoop.mapred.RecordWriter<K,V> |
recordWriter |
| Constructor and Description |
|---|
HadoopOutputFormatWrapper(org.apache.hadoop.mapred.OutputFormat<K,V> hadoopFormat,
org.apache.hadoop.mapred.JobConf job,
StratosphereTypeConverter<K,V> conv) |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
commit the task by moving the output file out from the temporary directory.
|
void |
configure(eu.stratosphere.configuration.Configuration parameters) |
org.apache.hadoop.mapred.OutputFormat<K,V> |
getHadoopOutputFormat() |
org.apache.hadoop.mapred.JobConf |
getJobConf() |
void |
open(int taskNumber,
int numTasks)
create the temporary output file for hadoop RecordWriter.
|
void |
setHadoopOutputFormat(org.apache.hadoop.mapred.OutputFormat<K,V> hadoopOutputFormat) |
void |
setJobConf(org.apache.hadoop.mapred.JobConf job) |
void |
writeRecord(eu.stratosphere.types.Record record) |
public org.apache.hadoop.mapred.JobConf jobConf
public StratosphereTypeConverter<K,V> converter
public FileOutputCommitterWrapper fileOutputCommitterWrapper
public HadoopOutputFormatWrapper(org.apache.hadoop.mapred.OutputFormat<K,V> hadoopFormat, org.apache.hadoop.mapred.JobConf job, StratosphereTypeConverter<K,V> conv)
public void configure(eu.stratosphere.configuration.Configuration parameters)
configure in interface eu.stratosphere.api.common.io.OutputFormat<eu.stratosphere.types.Record>public void open(int taskNumber,
int numTasks)
throws IOException
open in interface eu.stratosphere.api.common.io.OutputFormat<eu.stratosphere.types.Record>taskNumber - The number of the parallel instance.numTasks - The number of parallel tasks.IOExceptionpublic void writeRecord(eu.stratosphere.types.Record record)
throws IOException
writeRecord in interface eu.stratosphere.api.common.io.OutputFormat<eu.stratosphere.types.Record>IOExceptionpublic void close()
throws IOException
close in interface eu.stratosphere.api.common.io.OutputFormat<eu.stratosphere.types.Record>IOExceptionpublic void setJobConf(org.apache.hadoop.mapred.JobConf job)
public org.apache.hadoop.mapred.JobConf getJobConf()
Copyright © 2013–2014. All rights reserved.