Package io.trino.orc
Class OrcDataSourceUtils
- java.lang.Object
-
- io.trino.orc.OrcDataSourceUtils
-
public final class OrcDataSourceUtils extends Object
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static io.airlift.slice.SlicegetDiskRangeSlice(DiskRange diskRange, Map<DiskRange,io.airlift.slice.Slice> buffers)Get a slice for the disk range from the provided buffers.static List<DiskRange>mergeAdjacentDiskRanges(Collection<DiskRange> diskRanges, io.airlift.units.DataSize maxMergeDistance, io.airlift.units.DataSize maxReadSize)Merge disk ranges that are closer thanmaxMergeDistance.
-
-
-
Method Detail
-
mergeAdjacentDiskRanges
public static List<DiskRange> mergeAdjacentDiskRanges(Collection<DiskRange> diskRanges, io.airlift.units.DataSize maxMergeDistance, io.airlift.units.DataSize maxReadSize)
Merge disk ranges that are closer thanmaxMergeDistance.
-
getDiskRangeSlice
public static io.airlift.slice.Slice getDiskRangeSlice(DiskRange diskRange, Map<DiskRange,io.airlift.slice.Slice> buffers)
Get a slice for the disk range from the provided buffers. The buffers ranges do not have to exactly matchdiskRange, butdiskRangemust be completely contained within one of the buffer ranges.
-
-