Package io.trino.orc

Class OrcDataSourceUtils

java.lang.Object
io.trino.orc.OrcDataSourceUtils

public final class OrcDataSourceUtils extends Object
  • 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 than maxMergeDistance.
    • 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 match diskRange, but diskRange must be completely contained within one of the buffer ranges.