Class DiskRange

java.lang.Object
io.trino.orc.DiskRange

public final class DiskRange extends Object
  • Constructor Details

    • DiskRange

      public DiskRange(long offset, int length)
  • Method Details

    • getOffset

      public long getOffset()
    • getLength

      public int getLength()
    • getEnd

      public long getEnd()
    • contains

      public boolean contains(DiskRange diskRange)
    • span

      public DiskRange span(DiskRange otherDiskRange)
      Returns the minimal DiskRange that encloses both this DiskRange and otherDiskRange. If there was a gap between the ranges the new range will cover that gap.
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object