code: @Override
  	public int compare(int i, int j) {
  		final int segmentNumberI = i / this.recordsPerSegment;
  		final int segmentOffsetI = (i % this.recordsPerSegment) * this.recordSize;
  
  		final int segmentNumberJ = j / this.recordsPerSegment;
  		final int segmentOffsetJ = (j % this.recordsPerSegment) * this.recordSize;
  
  		return compare(segmentNumberI, segmentOffsetI, segmentNumberJ, segmentOffsetJ);
  	}
docs: -------------------------------------------------------------------------