Package io.trino.orc
Class OrcDataSourceUtils
java.lang.Object
io.trino.orc.OrcDataSourceUtils
-
Method Summary
Modifier and TypeMethodDescriptionstatic io.airlift.slice.SlicegetDiskRangeSlice(DiskRange diskRange, Map<DiskRange, io.airlift.slice.Slice> buffers) Get a slice for the disk range from the provided buffers.mergeAdjacentDiskRanges(Collection<DiskRange> diskRanges, io.airlift.units.DataSize maxMergeDistance, io.airlift.units.DataSize maxReadSize) Merge disk ranges that are closer thanmaxMergeDistance.
-
Method Details
-
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.
-