private final Integer sortReadTimeMillis; // Only null as a result of an old version.
public SortShardTask(String mrJobId, int shardNumber, int shardCount,
InputReader<KeyValue<ByteBuffer, ByteBuffer>> in, SortWorker worker,
OutputWriter<KeyValue<ByteBuffer, List<ByteBuffer>>> out, int sortReadTimeMillis) {
super(new IncrementalTaskContext(mrJobId, shardNumber, shardCount, SORT_CALLS,
SORT_WALLTIME_MILLIS));
this.sortReadTimeMillis = sortReadTimeMillis;
this.in = checkNotNull(in, "Null in");
this.out = checkNotNull(out, "Null out");
this.inMemSorter = worker;