/// <exception cref="System.IO.IOException"/> public override RecordReader <Text, Text> CreateRecordReader(InputSplit split, TaskAttemptContext context) { GenericMRLoadGenerator.IndirectInputFormat.IndirectSplit clSplit = (GenericMRLoadGenerator.IndirectInputFormat.IndirectSplit )split; return(new _RecordReader_222(clSplit)); }
public _RecordReader_222(GenericMRLoadGenerator.IndirectInputFormat.IndirectSplit clSplit) { this.clSplit = clSplit; this.once = true; this.key = new Text(); this.value = new Text(); }
/// <exception cref="System.IO.IOException"/> /// <exception cref="System.Exception"/> public override RecordReader <K, V> CreateRecordReader(InputSplit split, TaskAttemptContext context) { Configuration conf = context.GetConfiguration(); InputFormat <K, V> indirIF = (InputFormat)ReflectionUtils.NewInstance(conf.GetClass (IndirectInputFormat, typeof(SequenceFileInputFormat)), conf); GenericMRLoadGenerator.IndirectInputFormat.IndirectSplit @is = ((GenericMRLoadGenerator.IndirectInputFormat.IndirectSplit )split); return(indirIF.CreateRecordReader(new FileSplit(@is.GetPath(), 0, @is.GetLength() , (string[])null), context)); }