Package org.apache.parquet.format
Class FileMetaData
java.lang.Object
org.apache.parquet.format.FileMetaData
- All Implemented Interfaces:
Serializable,Cloneable,Comparable<FileMetaData>,org.apache.thrift.TBase<FileMetaData,,FileMetaData._Fields> org.apache.thrift.TSerializable
@Generated(value="Autogenerated by Thrift Compiler (0.23.0)",
date="2026-08-06")
public class FileMetaData
extends Object
implements org.apache.thrift.TBase<FileMetaData,FileMetaData._Fields>, Serializable, Cloneable, Comparable<FileMetaData>
Description for file metadata
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumThe set of fields this struct contains, along with convenience methods for finding and manipulating them. -
Field Summary
FieldsModifier and TypeFieldDescriptionSort order used for the min_value and max_value fields in the Statistics objects and the min_values and max_values fields in the ColumnIndex objects of each column in this file.String for application that wrote this file.Encryption algorithm.Retrieval metadata of key used for signing the footer.Optional key/value metadata *static final Map<FileMetaData._Fields,org.apache.thrift.meta_data.FieldMetaData> longNumber of rows in this file *Row groups in this file *Parquet schema for this file.intVersion of this file As of December 2025, there is no agreed upon consensus of what constitutes version 2 of the file. -
Constructor Summary
ConstructorsConstructorDescriptionFileMetaData(int version, List<SchemaElement> schema, long num_rows, List<RowGroup> row_groups) FileMetaData(FileMetaData other) Performs a deep copy on other. -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidvoidaddToRow_groups(RowGroup elem) voidaddToSchema(SchemaElement elem) voidclear()intcompareTo(FileMetaData other) deepCopy()booleanbooleanequals(FileMetaData that) fieldForId(int fieldId) Sort order used for the min_value and max_value fields in the Statistics objects and the min_values and max_values fields in the ColumnIndex objects of each column in this file.intString for application that wrote this file.Encryption algorithm.byte[]Retrieval metadata of key used for signing the footer.Optional key/value metadata *intlongNumber of rows in this file *Row groups in this file *intParquet schema for this file.intintVersion of this file As of December 2025, there is no agreed upon consensus of what constitutes version 2 of the file.inthashCode()booleanisSet(FileMetaData._Fields field) Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwisebooleanReturns true if field column_orders is set (has been assigned a value) and false otherwisebooleanReturns true if field created_by is set (has been assigned a value) and false otherwisebooleanReturns true if field encryption_algorithm is set (has been assigned a value) and false otherwisebooleanReturns true if field footer_signing_key_metadata is set (has been assigned a value) and false otherwisebooleanReturns true if field key_value_metadata is set (has been assigned a value) and false otherwisebooleanReturns true if field num_rows is set (has been assigned a value) and false otherwisebooleanReturns true if field row_groups is set (has been assigned a value) and false otherwisebooleanReturns true if field schema is set (has been assigned a value) and false otherwisebooleanReturns true if field version is set (has been assigned a value) and false otherwisevoidread(org.apache.thrift.protocol.TProtocol iprot) setColumn_orders(List<ColumnOrder> column_orders) Sort order used for the min_value and max_value fields in the Statistics objects and the min_values and max_values fields in the ColumnIndex objects of each column in this file.voidsetColumn_ordersIsSet(boolean value) setCreated_by(String created_by) String for application that wrote this file.voidsetCreated_byIsSet(boolean value) setEncryption_algorithm(EncryptionAlgorithm encryption_algorithm) Encryption algorithm.voidsetEncryption_algorithmIsSet(boolean value) voidsetFieldValue(FileMetaData._Fields field, Object value) setFooter_signing_key_metadata(byte[] footer_signing_key_metadata) Retrieval metadata of key used for signing the footer.setFooter_signing_key_metadata(ByteBuffer footer_signing_key_metadata) voidsetFooter_signing_key_metadataIsSet(boolean value) setKey_value_metadata(List<KeyValue> key_value_metadata) Optional key/value metadata *voidsetKey_value_metadataIsSet(boolean value) setNum_rows(long num_rows) Number of rows in this file *voidsetNum_rowsIsSet(boolean value) setRow_groups(List<RowGroup> row_groups) Row groups in this file *voidsetRow_groupsIsSet(boolean value) setSchema(List<SchemaElement> schema) Parquet schema for this file.voidsetSchemaIsSet(boolean value) setVersion(int version) Version of this file As of December 2025, there is no agreed upon consensus of what constitutes version 2 of the file.voidsetVersionIsSet(boolean value) toString()voidvoidvoidvoidvoidvoidvoidvoidvoidvoidvalidate()voidwrite(org.apache.thrift.protocol.TProtocol oprot)
-
Field Details
-
version
public int versionVersion of this file As of December 2025, there is no agreed upon consensus of what constitutes version 2 of the file. For maximum compatibility with readers, writers should always populate "1" for version. For maximum compatibility with writers, readers should accept "1" and "2" interchangeably. All other versions are reserved for potential future use-cases. -
schema
Parquet schema for this file. This schema contains metadata for all the columns. The schema is represented as a tree with a single root. The nodes of the tree are flattened to a list by doing a depth-first traversal. The column metadata contains the path in the schema for that column which can be used to map columns to nodes in the schema. The first element is the root * -
num_rows
public long num_rowsNumber of rows in this file * -
row_groups
Row groups in this file * -
key_value_metadata
Optional key/value metadata * -
created_by
String for application that wrote this file. This should be in the formatversion (build ). e.g. impala version 1.0 (build 6cf94d29b2b7115df4de2c06e2ab4326d721eb55) -
column_orders
Sort order used for the min_value and max_value fields in the Statistics objects and the min_values and max_values fields in the ColumnIndex objects of each column in this file. Sort orders are listed in the order matching the columns in the schema. The indexes are not necessarily the same though, because only leaf nodes of the schema are represented in the list of sort orders. Without column_orders, the meaning of the min_value and max_value fields in the Statistics object and the ColumnIndex object is undefined. To ensure well-defined behaviour, if these fields are written to a Parquet file, column_orders must be written as well. The obsolete min and max fields in the Statistics object are always sorted by signed comparison regardless of column_orders. -
encryption_algorithm
Encryption algorithm. This field is set only in encrypted files with plaintext footer. Files with encrypted footer store algorithm id in FileCryptoMetaData structure. -
metaDataMap
-
-
Constructor Details
-
FileMetaData
public FileMetaData() -
FileMetaData
public FileMetaData(int version, List<SchemaElement> schema, long num_rows, List<RowGroup> row_groups) -
FileMetaData
Performs a deep copy on other.
-
-
Method Details
-
deepCopy
- Specified by:
deepCopyin interfaceorg.apache.thrift.TBase<FileMetaData,FileMetaData._Fields>
-
clear
public void clear()- Specified by:
clearin interfaceorg.apache.thrift.TBase<FileMetaData,FileMetaData._Fields>
-
getVersion
public int getVersion()Version of this file As of December 2025, there is no agreed upon consensus of what constitutes version 2 of the file. For maximum compatibility with readers, writers should always populate "1" for version. For maximum compatibility with writers, readers should accept "1" and "2" interchangeably. All other versions are reserved for potential future use-cases. -
setVersion
Version of this file As of December 2025, there is no agreed upon consensus of what constitutes version 2 of the file. For maximum compatibility with readers, writers should always populate "1" for version. For maximum compatibility with writers, readers should accept "1" and "2" interchangeably. All other versions are reserved for potential future use-cases. -
unsetVersion
public void unsetVersion() -
isSetVersion
public boolean isSetVersion()Returns true if field version is set (has been assigned a value) and false otherwise -
setVersionIsSet
public void setVersionIsSet(boolean value) -
getSchemaSize
public int getSchemaSize() -
getSchemaIterator
-
addToSchema
-
getSchema
Parquet schema for this file. This schema contains metadata for all the columns. The schema is represented as a tree with a single root. The nodes of the tree are flattened to a list by doing a depth-first traversal. The column metadata contains the path in the schema for that column which can be used to map columns to nodes in the schema. The first element is the root * -
setSchema
Parquet schema for this file. This schema contains metadata for all the columns. The schema is represented as a tree with a single root. The nodes of the tree are flattened to a list by doing a depth-first traversal. The column metadata contains the path in the schema for that column which can be used to map columns to nodes in the schema. The first element is the root * -
unsetSchema
public void unsetSchema() -
isSetSchema
public boolean isSetSchema()Returns true if field schema is set (has been assigned a value) and false otherwise -
setSchemaIsSet
public void setSchemaIsSet(boolean value) -
getNum_rows
public long getNum_rows()Number of rows in this file * -
setNum_rows
Number of rows in this file * -
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) -
getRow_groupsSize
public int getRow_groupsSize() -
getRow_groupsIterator
-
addToRow_groups
-
getRow_groups
Row groups in this file * -
setRow_groups
Row groups in this file * -
unsetRow_groups
public void unsetRow_groups() -
isSetRow_groups
public boolean isSetRow_groups()Returns true if field row_groups is set (has been assigned a value) and false otherwise -
setRow_groupsIsSet
public void setRow_groupsIsSet(boolean value) -
getKey_value_metadataSize
public int getKey_value_metadataSize() -
getKey_value_metadataIterator
-
addToKey_value_metadata
-
getKey_value_metadata
Optional key/value metadata * -
setKey_value_metadata
Optional key/value metadata * -
unsetKey_value_metadata
public void unsetKey_value_metadata() -
isSetKey_value_metadata
public boolean isSetKey_value_metadata()Returns true if field key_value_metadata is set (has been assigned a value) and false otherwise -
setKey_value_metadataIsSet
public void setKey_value_metadataIsSet(boolean value) -
getCreated_by
String for application that wrote this file. This should be in the formatversion (build ). e.g. impala version 1.0 (build 6cf94d29b2b7115df4de2c06e2ab4326d721eb55) -
setCreated_by
String for application that wrote this file. This should be in the formatversion (build ). e.g. impala version 1.0 (build 6cf94d29b2b7115df4de2c06e2ab4326d721eb55) -
unsetCreated_by
public void unsetCreated_by() -
isSetCreated_by
public boolean isSetCreated_by()Returns true if field created_by is set (has been assigned a value) and false otherwise -
setCreated_byIsSet
public void setCreated_byIsSet(boolean value) -
getColumn_ordersSize
public int getColumn_ordersSize() -
getColumn_ordersIterator
-
addToColumn_orders
-
getColumn_orders
Sort order used for the min_value and max_value fields in the Statistics objects and the min_values and max_values fields in the ColumnIndex objects of each column in this file. Sort orders are listed in the order matching the columns in the schema. The indexes are not necessarily the same though, because only leaf nodes of the schema are represented in the list of sort orders. Without column_orders, the meaning of the min_value and max_value fields in the Statistics object and the ColumnIndex object is undefined. To ensure well-defined behaviour, if these fields are written to a Parquet file, column_orders must be written as well. The obsolete min and max fields in the Statistics object are always sorted by signed comparison regardless of column_orders. -
setColumn_orders
Sort order used for the min_value and max_value fields in the Statistics objects and the min_values and max_values fields in the ColumnIndex objects of each column in this file. Sort orders are listed in the order matching the columns in the schema. The indexes are not necessarily the same though, because only leaf nodes of the schema are represented in the list of sort orders. Without column_orders, the meaning of the min_value and max_value fields in the Statistics object and the ColumnIndex object is undefined. To ensure well-defined behaviour, if these fields are written to a Parquet file, column_orders must be written as well. The obsolete min and max fields in the Statistics object are always sorted by signed comparison regardless of column_orders. -
unsetColumn_orders
public void unsetColumn_orders() -
isSetColumn_orders
public boolean isSetColumn_orders()Returns true if field column_orders is set (has been assigned a value) and false otherwise -
setColumn_ordersIsSet
public void setColumn_ordersIsSet(boolean value) -
getEncryption_algorithm
Encryption algorithm. This field is set only in encrypted files with plaintext footer. Files with encrypted footer store algorithm id in FileCryptoMetaData structure. -
setEncryption_algorithm
Encryption algorithm. This field is set only in encrypted files with plaintext footer. Files with encrypted footer store algorithm id in FileCryptoMetaData structure. -
unsetEncryption_algorithm
public void unsetEncryption_algorithm() -
isSetEncryption_algorithm
public boolean isSetEncryption_algorithm()Returns true if field encryption_algorithm is set (has been assigned a value) and false otherwise -
setEncryption_algorithmIsSet
public void setEncryption_algorithmIsSet(boolean value) -
setFieldValue
- Specified by:
setFieldValuein interfaceorg.apache.thrift.TBase<FileMetaData,FileMetaData._Fields>
-
getFieldValue
- Specified by:
getFieldValuein interfaceorg.apache.thrift.TBase<FileMetaData,FileMetaData._Fields>
-
isSet
Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise- Specified by:
isSetin interfaceorg.apache.thrift.TBase<FileMetaData,FileMetaData._Fields>
-
equals
-
equals
-
hashCode
public int hashCode() -
compareTo
- Specified by:
compareToin interfaceComparable<FileMetaData>
-
fieldForId
- Specified by:
fieldForIdin interfaceorg.apache.thrift.TBase<FileMetaData,FileMetaData._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
-
toString
-
validate
public void validate() throws org.apache.thrift.TException- Throws:
org.apache.thrift.TException
-