Record Class PageLocation
java.lang.Object
java.lang.Record
dev.hardwood.metadata.PageLocation
- Record Components:
offset- absolute file offset of the pagecompressedPageSize- total page size in file including headerfirstRowIndex- index of the first row in this page within the row group
Location of a data page within a column chunk.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionPageLocation(long offset, int compressedPageSize, long firstRowIndex) Creates an instance of aPageLocationrecord class. -
Method Summary
Modifier and TypeMethodDescriptionintReturns the value of thecompressedPageSizerecord component.final booleanIndicates whether some other object is "equal to" this one.longReturns the value of thefirstRowIndexrecord component.final inthashCode()Returns a hash code value for this object.longoffset()Returns the value of theoffsetrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
PageLocation
public PageLocation(long offset, int compressedPageSize, long firstRowIndex) Creates an instance of aPageLocationrecord class.- Parameters:
offset- the value for theoffsetrecord componentcompressedPageSize- the value for thecompressedPageSizerecord componentfirstRowIndex- the value for thefirstRowIndexrecord component
-
-
Method Details
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared with thecomparemethod from their corresponding wrapper classes. -
offset
-
compressedPageSize
public int compressedPageSize()Returns the value of thecompressedPageSizerecord component.- Returns:
- the value of the
compressedPageSizerecord component
-
firstRowIndex
public long firstRowIndex()Returns the value of thefirstRowIndexrecord component.- Returns:
- the value of the
firstRowIndexrecord component
-