コード例 #1
0
 /// <summary>Write key value to an output file name.</summary>
 /// <remarks>
 /// Write key value to an output file name.
 /// Gets the record writer from job's output format.
 /// Job's output format should be a FileOutputFormat.
 /// </remarks>
 /// <param name="key">the key</param>
 /// <param name="value">the value</param>
 /// <param name="baseOutputPath">
 /// base-output path to write the record to.
 /// Note: Framework will generate unique filename for the baseOutputPath
 /// </param>
 /// <exception cref="System.IO.IOException"/>
 /// <exception cref="System.Exception"/>
 public virtual void Write(KEYOUT key, VALUEOUT value, string baseOutputPath)
 {
     CheckBaseOutputPath(baseOutputPath);
     if (jobOutputFormatContext == null)
     {
         jobOutputFormatContext = new TaskAttemptContextImpl(context.GetConfiguration(), context
                                                             .GetTaskAttemptID(), new MultipleOutputs.WrappedStatusReporter(context));
     }
     GetRecordWriter(jobOutputFormatContext, baseOutputPath).Write(key, value);
 }
コード例 #2
0
 public virtual TaskAttemptID GetTaskAttemptID()
 {
     return(@base.GetTaskAttemptID());
 }