code: public IndexRecord getIndex(int partition) {
      final int pos = partition * MapTask.MAP_OUTPUT_INDEX_RECORD_LENGTH / 8;
      return new IndexRecord(entries.get(pos), entries.get(pos + 1),
                             entries.get(pos + 2));
    }
docs: Get spill offsets for given partition.