*/
if (comparator.compare(begin, end) != 0)
endOffset = reader.getOffsetForKey(end);
}
int startBlockIndex = (beginOffset == 0 ? 0 : getStartBlockIndex(startOffsets, beginOffset));
BlockLocation l;
int endBlockIndex = (end == null ? locations.length : endOffset == -1 ?
startBlockIndex : getEndBlockIndex(startOffsets, endOffset));
for (int ii = startBlockIndex; ii < endBlockIndex; ii++) {
l = locations[ii];
long blkBeginOffset = l.getOffset();
long blkEndOffset = blkBeginOffset + l.getLength();
if (blkEndOffset > blkBeginOffset) {
bd.add(l, blkEndOffset - blkBeginOffset);
}
}
return;