Class OffsetIndex

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

@Generated(value="Autogenerated by Thrift Compiler (0.23.0)", date="2026-08-06") public class OffsetIndex extends Object implements org.apache.thrift.TBase<OffsetIndex,OffsetIndex._Fields>, Serializable, Cloneable, Comparable<OffsetIndex>
Optional offsets for each data page in a ColumnChunk. Forms part of the page index, along with ColumnIndex. OffsetIndex may be present even if ColumnIndex is not.
See Also:
  • Field Details

    • page_locations

      public List<PageLocation> page_locations
      PageLocations, ordered by increasing PageLocation.offset. It is required that page_locations[i].first_row_index < page_locations[i+1].first_row_index.
    • unencoded_byte_array_data_bytes

      public List<Long> unencoded_byte_array_data_bytes
      Unencoded/uncompressed size for BYTE_ARRAY types. See documentation for unencoded_byte_array_data_bytes in SizeStatistics for more details on this field.
    • metaDataMap

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

    • OffsetIndex

      public OffsetIndex()
    • OffsetIndex

      public OffsetIndex(List<PageLocation> page_locations)
    • OffsetIndex

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

    • deepCopy

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

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

      public int getPage_locationsSize()
    • getPage_locationsIterator

      public Iterator<PageLocation> getPage_locationsIterator()
    • addToPage_locations

      public void addToPage_locations(PageLocation elem)
    • getPage_locations

      public List<PageLocation> getPage_locations()
      PageLocations, ordered by increasing PageLocation.offset. It is required that page_locations[i].first_row_index < page_locations[i+1].first_row_index.
    • setPage_locations

      public OffsetIndex setPage_locations(List<PageLocation> page_locations)
      PageLocations, ordered by increasing PageLocation.offset. It is required that page_locations[i].first_row_index < page_locations[i+1].first_row_index.
    • unsetPage_locations

      public void unsetPage_locations()
    • isSetPage_locations

      public boolean isSetPage_locations()
      Returns true if field page_locations is set (has been assigned a value) and false otherwise
    • setPage_locationsIsSet

      public void setPage_locationsIsSet(boolean value)
    • getUnencoded_byte_array_data_bytesSize

      public int getUnencoded_byte_array_data_bytesSize()
    • getUnencoded_byte_array_data_bytesIterator

      public Iterator<Long> getUnencoded_byte_array_data_bytesIterator()
    • addToUnencoded_byte_array_data_bytes

      public void addToUnencoded_byte_array_data_bytes(long elem)
    • getUnencoded_byte_array_data_bytes

      public List<Long> getUnencoded_byte_array_data_bytes()
      Unencoded/uncompressed size for BYTE_ARRAY types. See documentation for unencoded_byte_array_data_bytes in SizeStatistics for more details on this field.
    • setUnencoded_byte_array_data_bytes

      public OffsetIndex setUnencoded_byte_array_data_bytes(List<Long> unencoded_byte_array_data_bytes)
      Unencoded/uncompressed size for BYTE_ARRAY types. See documentation for unencoded_byte_array_data_bytes in SizeStatistics for more details on this field.
    • unsetUnencoded_byte_array_data_bytes

      public void unsetUnencoded_byte_array_data_bytes()
    • isSetUnencoded_byte_array_data_bytes

      public boolean isSetUnencoded_byte_array_data_bytes()
      Returns true if field unencoded_byte_array_data_bytes is set (has been assigned a value) and false otherwise
    • setUnencoded_byte_array_data_bytesIsSet

      public void setUnencoded_byte_array_data_bytesIsSet(boolean value)
    • setFieldValue

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

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

      public boolean isSet(OffsetIndex._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<OffsetIndex,OffsetIndex._Fields>
    • equals

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

      public boolean equals(OffsetIndex that)
    • hashCode

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

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

      public OffsetIndex._Fields fieldForId(int fieldId)
      Specified by:
      fieldForId in interface org.apache.thrift.TBase<OffsetIndex,OffsetIndex._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