public Segment(IFile.Reader <K, V> reader, bool preserve, Counters.Counter mapOutputsCounter ) { this.reader = reader; this.preserve = preserve; this.segmentLength = reader.GetLength(); this.mapOutputsCounter = mapOutputsCounter; }
public virtual long GetLength() { return((reader == null) ? segmentLength : reader.GetLength()); }