in hadoop-api-shim/src/main/java/org/apache/hadoop/fs/shim/impl/VectoredRangeReadImpl.java [191:199]
static void readRanges(
final FSDataInputStreamShim in,
boolean useByteBufferPositionedRead,
List<? extends VectorFileRange> ranges,
IntFunction<ByteBuffer> allocate) throws EOFException {
for (VectorFileRange range : validateNonOverlappingAndReturnSortedRanges(ranges)) {
range.setData(readOneRange(in, useByteBufferPositionedRead, range, allocate));
}
}