private void getFilePositionsToWarm(IndexReader reader, String segmentName, String fileName, String fieldName,
long startingPosition, long endingPosition, String context, Map<String, OpenBitSet> filePartsToWarm, int blockSize)
throws IOException {
Directory dir = getDirectory(reader, segmentName, context);
long fileLength = dir.fileLength(fileName);
if (endingPosition == Long.MAX_VALUE) {
endingPosition = fileLength - 1;
}
OpenBitSet openBitSet = filePartsToWarm.get(fileName);
if (openBitSet == null) {