Class PageLocation

java.lang.Object
org.apache.parquet.format.PageLocation
All Implemented Interfaces:
Serializable, Cloneable, Comparable<PageLocation>, org.apache.thrift.TBase<PageLocation,PageLocation._Fields>, org.apache.thrift.TSerializable

@Generated(value="Autogenerated by Thrift Compiler (0.23.0)", date="2026-08-06") public class PageLocation extends Object implements org.apache.thrift.TBase<PageLocation,PageLocation._Fields>, Serializable, Cloneable, Comparable<PageLocation>
See Also:
  • Field Details

    • offset

      public long offset
      Offset of the page in the file *
    • compressed_page_size

      public int compressed_page_size
      Size of the page, including header. Equal to the sum of the page's PageHeader.compressed_page_size and the size of the serialized PageHeader.
    • first_row_index

      public long first_row_index
      Index within the RowGroup of the first row of the page. When an OffsetIndex is present, pages must begin on row boundaries (repetition_level = 0).
    • metaDataMap

      public static final Map<PageLocation._Fields,org.apache.thrift.meta_data.FieldMetaData> metaDataMap
  • Constructor Details

    • PageLocation

      public PageLocation()
    • PageLocation

      public PageLocation(long offset, int compressed_page_size, long first_row_index)
    • PageLocation

      public PageLocation(PageLocation other)
      Performs a deep copy on other.
  • Method Details

    • deepCopy

      public PageLocation deepCopy()
      Specified by:
      deepCopy in interface org.apache.thrift.TBase<PageLocation,PageLocation._Fields>
    • clear

      public void clear()
      Specified by:
      clear in interface org.apache.thrift.TBase<PageLocation,PageLocation._Fields>
    • getOffset

      public long getOffset()
      Offset of the page in the file *
    • setOffset

      public PageLocation setOffset(long offset)
      Offset of the page in the file *
    • unsetOffset

      public void unsetOffset()
    • isSetOffset

      public boolean isSetOffset()
      Returns true if field offset is set (has been assigned a value) and false otherwise
    • setOffsetIsSet

      public void setOffsetIsSet(boolean value)
    • getCompressed_page_size

      public int getCompressed_page_size()
      Size of the page, including header. Equal to the sum of the page's PageHeader.compressed_page_size and the size of the serialized PageHeader.
    • setCompressed_page_size

      public PageLocation setCompressed_page_size(int compressed_page_size)
      Size of the page, including header. Equal to the sum of the page's PageHeader.compressed_page_size and the size of the serialized PageHeader.
    • unsetCompressed_page_size

      public void unsetCompressed_page_size()
    • isSetCompressed_page_size

      public boolean isSetCompressed_page_size()
      Returns true if field compressed_page_size is set (has been assigned a value) and false otherwise
    • setCompressed_page_sizeIsSet

      public void setCompressed_page_sizeIsSet(boolean value)
    • getFirst_row_index

      public long getFirst_row_index()
      Index within the RowGroup of the first row of the page. When an OffsetIndex is present, pages must begin on row boundaries (repetition_level = 0).
    • setFirst_row_index

      public PageLocation setFirst_row_index(long first_row_index)
      Index within the RowGroup of the first row of the page. When an OffsetIndex is present, pages must begin on row boundaries (repetition_level = 0).
    • unsetFirst_row_index

      public void unsetFirst_row_index()
    • isSetFirst_row_index

      public boolean isSetFirst_row_index()
      Returns true if field first_row_index is set (has been assigned a value) and false otherwise
    • setFirst_row_indexIsSet

      public void setFirst_row_indexIsSet(boolean value)
    • setFieldValue

      public void setFieldValue(PageLocation._Fields field, Object value)
      Specified by:
      setFieldValue in interface org.apache.thrift.TBase<PageLocation,PageLocation._Fields>
    • getFieldValue

      public Object getFieldValue(PageLocation._Fields field)
      Specified by:
      getFieldValue in interface org.apache.thrift.TBase<PageLocation,PageLocation._Fields>
    • isSet

      public boolean isSet(PageLocation._Fields field)
      Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise
      Specified by:
      isSet in interface org.apache.thrift.TBase<PageLocation,PageLocation._Fields>
    • equals

      public boolean equals(Object that)
      Overrides:
      equals in class Object
    • equals

      public boolean equals(PageLocation that)
    • hashCode

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

      public int compareTo(PageLocation other)
      Specified by:
      compareTo in interface Comparable<PageLocation>
    • fieldForId

      public PageLocation._Fields fieldForId(int fieldId)
      Specified by:
      fieldForId in interface org.apache.thrift.TBase<PageLocation,PageLocation._Fields>
    • read

      public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException
      Specified by:
      read in interface org.apache.thrift.TSerializable
      Throws:
      org.apache.thrift.TException
    • write

      public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException
      Specified by:
      write in interface org.apache.thrift.TSerializable
      Throws:
      org.apache.thrift.TException
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • validate

      public void validate() throws org.apache.thrift.TException
      Throws:
      org.apache.thrift.TException