Package org.apache.parquet.format
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.16.0)", date="2023-05-12") public class RowGroup extends Object implements org.apache.thrift.TBase<RowGroup,RowGroup._Fields>, Serializable, Cloneable, Comparable<RowGroup>
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classRowGroup._FieldsThe set of fields this struct contains, along with convenience methods for finding and manipulating them.
-
Field Summary
Fields Modifier and Type Field Description List<ColumnChunk>columnsMetadata for each column chunk in this row group.longfile_offsetByte offset from beginning of file to first page (data or dictionary) in this row group *static Map<RowGroup._Fields,org.apache.thrift.meta_data.FieldMetaData>metaDataMaplongnum_rowsNumber of rows in this row group *shortordinalRow group ordinal in the file *List<SortingColumn>sorting_columnsIf set, specifies a sort ordering of the rows in this RowGroup.longtotal_byte_sizeTotal byte size of all the uncompressed column data in this row group *longtotal_compressed_sizeTotal byte size of all compressed (and potentially encrypted) column data in this row group *
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddToColumns(ColumnChunk elem)voidaddToSorting_columns(SortingColumn elem)voidclear()intcompareTo(RowGroup other)RowGroupdeepCopy()booleanequals(Object that)booleanequals(RowGroup that)RowGroup._FieldsfieldForId(int fieldId)List<ColumnChunk>getColumns()Metadata for each column chunk in this row group.Iterator<ColumnChunk>getColumnsIterator()intgetColumnsSize()ObjectgetFieldValue(RowGroup._Fields field)longgetFile_offset()Byte offset from beginning of file to first page (data or dictionary) in this row group *longgetNum_rows()Number of rows in this row group *shortgetOrdinal()Row group ordinal in the file *List<SortingColumn>getSorting_columns()If set, specifies a sort ordering of the rows in this RowGroup.Iterator<SortingColumn>getSorting_columnsIterator()intgetSorting_columnsSize()longgetTotal_byte_size()Total byte size of all the uncompressed column data in this row group *longgetTotal_compressed_size()Total byte size of all compressed (and potentially encrypted) column data in this row group *inthashCode()booleanisSet(RowGroup._Fields field)Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwisebooleanisSetColumns()Returns true if field columns is set (has been assigned a value) and false otherwisebooleanisSetFile_offset()Returns true if field file_offset is set (has been assigned a value) and false otherwisebooleanisSetNum_rows()Returns true if field num_rows is set (has been assigned a value) and false otherwisebooleanisSetOrdinal()Returns true if field ordinal is set (has been assigned a value) and false otherwisebooleanisSetSorting_columns()Returns true if field sorting_columns is set (has been assigned a value) and false otherwisebooleanisSetTotal_byte_size()Returns true if field total_byte_size is set (has been assigned a value) and false otherwisebooleanisSetTotal_compressed_size()Returns true if field total_compressed_size is set (has been assigned a value) and false otherwisevoidread(org.apache.thrift.protocol.TProtocol iprot)RowGroupsetColumns(List<ColumnChunk> columns)Metadata for each column chunk in this row group.voidsetColumnsIsSet(boolean value)voidsetFieldValue(RowGroup._Fields field, Object value)RowGroupsetFile_offset(long file_offset)Byte offset from beginning of file to first page (data or dictionary) in this row group *voidsetFile_offsetIsSet(boolean value)RowGroupsetNum_rows(long num_rows)Number of rows in this row group *voidsetNum_rowsIsSet(boolean value)RowGroupsetOrdinal(short ordinal)Row group ordinal in the file *voidsetOrdinalIsSet(boolean value)RowGroupsetSorting_columns(List<SortingColumn> sorting_columns)If set, specifies a sort ordering of the rows in this RowGroup.voidsetSorting_columnsIsSet(boolean value)RowGroupsetTotal_byte_size(long total_byte_size)Total byte size of all the uncompressed column data in this row group *voidsetTotal_byte_sizeIsSet(boolean value)RowGroupsetTotal_compressed_size(long total_compressed_size)Total byte size of all compressed (and potentially encrypted) column data in this row group *voidsetTotal_compressed_sizeIsSet(boolean value)StringtoString()voidunsetColumns()voidunsetFile_offset()voidunsetNum_rows()voidunsetOrdinal()voidunsetSorting_columns()voidunsetTotal_byte_size()voidunsetTotal_compressed_size()voidvalidate()voidwrite(org.apache.thrift.protocol.TProtocol oprot)
-
-
-
Field Detail
-
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 Detail
-
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 Detail
-
deepCopy
public RowGroup deepCopy()
- Specified by:
deepCopyin interfaceorg.apache.thrift.TBase<RowGroup,RowGroup._Fields>
-
clear
public void clear()
- Specified by:
clearin interfaceorg.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:
setFieldValuein interfaceorg.apache.thrift.TBase<RowGroup,RowGroup._Fields>
-
getFieldValue
public Object getFieldValue(RowGroup._Fields field)
- Specified by:
getFieldValuein interfaceorg.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:
isSetin interfaceorg.apache.thrift.TBase<RowGroup,RowGroup._Fields>
-
equals
public boolean equals(RowGroup that)
-
compareTo
public int compareTo(RowGroup other)
- Specified by:
compareToin interfaceComparable<RowGroup>
-
fieldForId
public RowGroup._Fields fieldForId(int fieldId)
- Specified by:
fieldForIdin interfaceorg.apache.thrift.TBase<RowGroup,RowGroup._Fields>
-
read
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException- Specified by:
readin interfaceorg.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:
writein interfaceorg.apache.thrift.TSerializable- Throws:
org.apache.thrift.TException
-
validate
public void validate() throws org.apache.thrift.TException- Throws:
org.apache.thrift.TException
-
-