public class HadoopOutputFormat<K,V> extends HadoopOutputFormatBase<K,V,scala.Tuple2<K,V>>
CLOSE_MUTEX, CONFIGURE_MUTEX, context, jobConf, mapredOutputFormat, OPEN_MUTEX, outputCommitter, recordWriter
credentials
Constructor and Description |
---|
HadoopOutputFormat(org.apache.hadoop.mapred.OutputFormat<K,V> mapredOutputFormat,
Class<org.apache.hadoop.mapred.OutputCommitter> outputCommitterClass,
org.apache.hadoop.mapred.JobConf job) |
HadoopOutputFormat(org.apache.hadoop.mapred.OutputFormat<K,V> mapredOutputFormat,
org.apache.hadoop.mapred.JobConf job) |
Modifier and Type | Method and Description |
---|---|
void |
writeRecord(scala.Tuple2<K,V> record)
Adds a record to the output.
|
close, configure, finalizeGlobal, getJobConf, open
read, write
getRuntimeContext, setRuntimeContext
public HadoopOutputFormat(org.apache.hadoop.mapred.OutputFormat<K,V> mapredOutputFormat, org.apache.hadoop.mapred.JobConf job)
public void writeRecord(scala.Tuple2<K,V> record)
OutputFormat
When this method is called, the output format it guaranteed to be opened.
record
- The records to add to the output.Copyright © 2014–2017 The Apache Software Foundation. All rights reserved.