Class RowGroup

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

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

    • columns

      public List<ColumnChunk> columns
      Metadata for each column chunk in this row group. This list must have the same order as the SchemaElement list in FileMetaData.
    • total_byte_size

      public long total_byte_size
      Total byte size of all the uncompressed column data in this row group *
    • num_rows

      public long num_rows
      Number of rows in this row group *
    • sorting_columns

      public List<SortingColumn> sorting_columns
      If set, specifies a sort ordering of the rows in this RowGroup. The sorting columns can be a subset of all the columns.
    • file_offset

      public long file_offset
      Byte offset from beginning of file to first page (data or dictionary) in this row group *
    • total_compressed_size

      public long total_compressed_size
      Total byte size of all compressed (and potentially encrypted) column data in this row group *
    • ordinal

      public short ordinal
      Row group ordinal in the file *
    • metaDataMap

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

    • RowGroup

      public RowGroup()
    • RowGroup

      public RowGroup(List<ColumnChunk> columns, long total_byte_size, long num_rows)
    • RowGroup

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

    • deepCopy

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

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

      public int getColumnsSize()
    • getColumnsIterator

      public Iterator<ColumnChunk> getColumnsIterator()
    • addToColumns

      public void addToColumns(ColumnChunk elem)
    • getColumns

      public List<ColumnChunk> getColumns()
      Metadata for each column chunk in this row group. This list must have the same order as the SchemaElement list in FileMetaData.
    • setColumns

      public RowGroup setColumns(List<ColumnChunk> columns)
      Metadata for each column chunk in this row group. This list must have the same order as the SchemaElement list in FileMetaData.
    • unsetColumns

      public void unsetColumns()
    • isSetColumns

      public boolean isSetColumns()
      Returns true if field columns is set (has been assigned a value) and false otherwise
    • setColumnsIsSet

      public void setColumnsIsSet(boolean value)
    • getTotal_byte_size

      public long getTotal_byte_size()
      Total byte size of all the uncompressed column data in this row group *
    • setTotal_byte_size

      public RowGroup setTotal_byte_size(long total_byte_size)
      Total byte size of all the uncompressed column data in this row group *
    • unsetTotal_byte_size

      public void unsetTotal_byte_size()
    • isSetTotal_byte_size

      public boolean isSetTotal_byte_size()
      Returns true if field total_byte_size is set (has been assigned a value) and false otherwise
    • setTotal_byte_sizeIsSet

      public void setTotal_byte_sizeIsSet(boolean value)
    • getNum_rows

      public long getNum_rows()
      Number of rows in this row group *
    • setNum_rows

      public RowGroup setNum_rows(long num_rows)
      Number of rows in this row group *
    • unsetNum_rows

      public void unsetNum_rows()
    • isSetNum_rows

      public boolean isSetNum_rows()
      Returns true if field num_rows is set (has been assigned a value) and false otherwise
    • setNum_rowsIsSet

      public void setNum_rowsIsSet(boolean value)
    • getSorting_columnsSize

      public int getSorting_columnsSize()
    • getSorting_columnsIterator

      public Iterator<SortingColumn> getSorting_columnsIterator()
    • addToSorting_columns

      public void addToSorting_columns(SortingColumn elem)
    • getSorting_columns

      public List<SortingColumn> getSorting_columns()
      If set, specifies a sort ordering of the rows in this RowGroup. The sorting columns can be a subset of all the columns.
    • setSorting_columns

      public RowGroup setSorting_columns(List<SortingColumn> sorting_columns)
      If set, specifies a sort ordering of the rows in this RowGroup. The sorting columns can be a subset of all the columns.
    • unsetSorting_columns

      public void unsetSorting_columns()
    • isSetSorting_columns

      public boolean isSetSorting_columns()
      Returns true if field sorting_columns is set (has been assigned a value) and false otherwise
    • setSorting_columnsIsSet

      public void setSorting_columnsIsSet(boolean value)
    • getFile_offset

      public long getFile_offset()
      Byte offset from beginning of file to first page (data or dictionary) in this row group *
    • setFile_offset

      public RowGroup setFile_offset(long file_offset)
      Byte offset from beginning of file to first page (data or dictionary) in this row group *
    • unsetFile_offset

      public void unsetFile_offset()
    • isSetFile_offset

      public boolean isSetFile_offset()
      Returns true if field file_offset is set (has been assigned a value) and false otherwise
    • setFile_offsetIsSet

      public void setFile_offsetIsSet(boolean value)
    • getTotal_compressed_size

      public long getTotal_compressed_size()
      Total byte size of all compressed (and potentially encrypted) column data in this row group *
    • setTotal_compressed_size

      public RowGroup setTotal_compressed_size(long total_compressed_size)
      Total byte size of all compressed (and potentially encrypted) column data in this row group *
    • unsetTotal_compressed_size

      public void unsetTotal_compressed_size()
    • isSetTotal_compressed_size

      public boolean isSetTotal_compressed_size()
      Returns true if field total_compressed_size is set (has been assigned a value) and false otherwise
    • setTotal_compressed_sizeIsSet

      public void setTotal_compressed_sizeIsSet(boolean value)
    • getOrdinal

      public short getOrdinal()
      Row group ordinal in the file *
    • setOrdinal

      public RowGroup setOrdinal(short ordinal)
      Row group ordinal in the file *
    • unsetOrdinal

      public void unsetOrdinal()
    • isSetOrdinal

      public boolean isSetOrdinal()
      Returns true if field ordinal is set (has been assigned a value) and false otherwise
    • setOrdinalIsSet

      public void setOrdinalIsSet(boolean value)
    • setFieldValue

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

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

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

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

      public boolean equals(RowGroup that)
    • hashCode

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

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

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