コード例 #1
0
 public override RecordReader <object, object> CreateRecordReader(InputSplit split,
                                                                  TaskAttemptContext context)
 {
     return(new TestLocalRunner.EmptyRecordReader());
 }
コード例 #2
0
 public override void Initialize(InputSplit split, TaskAttemptContext context)
 {
 }
コード例 #3
0
ファイル: RecordReader.cs プロジェクト: orf53975/hadoop.net
 /// <summary>Called once at initialization.</summary>
 /// <param name="split">the split that defines the range of records to read</param>
 /// <param name="context">the information about the task</param>
 /// <exception cref="System.IO.IOException"/>
 /// <exception cref="System.Exception"/>
 public abstract void Initialize(InputSplit split, TaskAttemptContext context);
コード例 #4
0
 public override RecordReader <K, V> CreateRecordReader(InputSplit ignored, TaskAttemptContext
                                                        context)
 {
     return(new _RecordReader_308());
 }
コード例 #5
0
 /// <summary>Create a record reader for a given split.</summary>
 /// <remarks>
 /// Create a record reader for a given split. The framework will call
 /// <see cref="RecordReader{KEYIN, VALUEIN}.Initialize(InputSplit, TaskAttemptContext)
 ///     "/>
 /// before
 /// the split is used.
 /// </remarks>
 /// <param name="split">the split to be read</param>
 /// <param name="context">the information about the task</param>
 /// <returns>a new record reader</returns>
 /// <exception cref="System.IO.IOException"/>
 /// <exception cref="System.Exception"/>
 public abstract RecordReader <K, V> CreateRecordReader(InputSplit split, TaskAttemptContext
                                                        context);
コード例 #6
0
 /// <exception cref="System.IO.IOException"/>
 /// <exception cref="System.Exception"/>
 public override RecordReader <Text, Text> CreateRecordReader(InputSplit split, TaskAttemptContext
                                                              context)
 {
     return(new RandomWriter.RandomInputFormat.RandomRecordReader(((FileSplit)split).GetPath
                                                                      ()));
 }
コード例 #7
0
                               > CreateRecordReader(InputSplit ignored, TaskAttemptContext taskContext)
 {
     return(new _RecordReader_259());
 }