}
out.reset(b, currentOffset, currentLength);
// Read from sort-buffer into the provided buffer, space permitting
DataInputBuffer key = new DataInputBuffer();
final InMemValBytes value = sorter.createInMemValBytes();
int kvPartition = 0;
int numRec = 0;
for (;
currentLength > 0 && recIndex < mend &&