return null; if (leftRange.belongs(blockOff)) return leftRange.status() != RANGE_STATUS_MOVED ? leftRange.affinityKey() : includeMoved ? leftRange.affinityKey() : null; return null; if (rightRange.belongs(blockOff)) return rightRange.status() != RANGE_STATUS_MOVED ? rightRange.affinityKey() : includeMoved ? leftRange.affinityKey() : null; if (midRange.belongs(blockOff)) return midRange.status() != RANGE_STATUS_MOVED ? midRange.affinityKey() : includeMoved ? leftRange.affinityKey() : null;
return null; if (leftRange.belongs(blockOff)) return leftRange.status() != RANGE_STATUS_MOVED ? leftRange.affinityKey() : includeMoved ? leftRange.affinityKey() : null; return null; if (rightRange.belongs(blockOff)) return rightRange.status() != RANGE_STATUS_MOVED ? rightRange.affinityKey() : includeMoved ? leftRange.affinityKey() : null; if (midRange.belongs(blockOff)) return midRange.status() != RANGE_STATUS_MOVED ? midRange.affinityKey() : includeMoved ? leftRange.affinityKey() : null;
if (range.belongs(pos)) { long partEnd = Math.min(range.endOffset() + 1, end);
if (range.belongs(pos)) { long partEnd = Math.min(range.endOffset() + 1, end);
if (!locRange.belongs(blockStart)) locRange.expand(blockStart, fileInfo.blockSize());
if (!locRange.belongs(blockStart)) locRange.expand(blockStart, fileInfo.blockSize());