Package io.trino.parquet
Class DiskRange
- java.lang.Object
-
- io.trino.parquet.DiskRange
-
public final class DiskRange extends Object
-
-
Constructor Summary
Constructors Constructor Description DiskRange(long offset, int length)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleancontains(DiskRange diskRange)booleanequals(Object obj)longgetEnd()intgetLength()longgetOffset()inthashCode()DiskRangespan(DiskRange otherDiskRange)Returns the minimal DiskRange that encloses both this DiskRange and otherDiskRange.StringtoString()
-
-
-
Method Detail
-
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.
-
-