示例#1
0
 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;
 }
示例#2
0
 public virtual long GetLength()
 {
     return((reader == null) ? segmentLength : reader.GetLength());
 }