/// <summary>return progress based on the amount of data processed so far.</summary> /// <exception cref="System.IO.IOException"/> public virtual float GetProgress() { return(Math.Min(1.0f, progress / (float)(split.GetLength()))); }
/// <exception cref="System.IO.IOException"/> protected internal CombineFileRecordReaderWrapper(FileInputFormat <K, V> inputFormat , CombineFileSplit split, Configuration conf, Reporter reporter, int idx) { FileSplit fileSplit = new FileSplit(split.GetPath(idx), split.GetOffset(idx), split .GetLength(idx), split.GetLocations()); delegate_ = inputFormat.GetRecordReader(fileSplit, (JobConf)conf, reporter); }