Package org.apache.parquet.format
Enum FileMetaData._Fields
- java.lang.Object
-
- java.lang.Enum<FileMetaData._Fields>
-
- org.apache.parquet.format.FileMetaData._Fields
-
- All Implemented Interfaces:
Serializable,Comparable<FileMetaData._Fields>,org.apache.thrift.TFieldIdEnum
- Enclosing class:
- FileMetaData
public static enum FileMetaData._Fields extends Enum<FileMetaData._Fields> implements org.apache.thrift.TFieldIdEnum
The set of fields this struct contains, along with convenience methods for finding and manipulating them.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description COLUMN_ORDERSSort order used for the min_value and max_value fields of each column in this file.CREATED_BYString for application that wrote this file.ENCRYPTION_ALGORITHMEncryption algorithm.FOOTER_SIGNING_KEY_METADATARetrieval metadata of key used for signing the footer.KEY_VALUE_METADATAOptional key/value metadata *NUM_ROWSNumber of rows in this file *ROW_GROUPSRow groups in this file *SCHEMAParquet schema for this file.VERSIONVersion of this file *
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static FileMetaData._FieldsfindByName(String name)Find the _Fields constant that matches name, or null if its not found.static FileMetaData._FieldsfindByThriftId(int fieldId)Find the _Fields constant that matches fieldId, or null if its not found.static FileMetaData._FieldsfindByThriftIdOrThrow(int fieldId)Find the _Fields constant that matches fieldId, throwing an exception if it is not found.StringgetFieldName()shortgetThriftFieldId()static FileMetaData._FieldsvalueOf(String name)Returns the enum constant of this type with the specified name.static FileMetaData._Fields[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
VERSION
public static final FileMetaData._Fields VERSION
Version of this file *
-
SCHEMA
public static final FileMetaData._Fields 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 static final FileMetaData._Fields NUM_ROWS
Number of rows in this file *
-
ROW_GROUPS
public static final FileMetaData._Fields ROW_GROUPS
Row groups in this file *
-
KEY_VALUE_METADATA
public static final FileMetaData._Fields KEY_VALUE_METADATA
Optional key/value metadata *
-
CREATED_BY
public static final FileMetaData._Fields 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
public static final FileMetaData._Fields COLUMN_ORDERS
Sort order used for the min_value and max_value fields of each column in this file. Sort orders are listed in the order matching the columns in the schema. The indexes are not necessary 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 is undefined. To ensure well-defined behaviour, if min_value and max_value are written to a Parquet file, column_orders must be written as well. The obsolete min and max fields are always sorted by signed comparison regardless of column_orders.
-
ENCRYPTION_ALGORITHM
public static final FileMetaData._Fields 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.
-
FOOTER_SIGNING_KEY_METADATA
public static final FileMetaData._Fields FOOTER_SIGNING_KEY_METADATA
Retrieval metadata of key used for signing the footer. Used only in encrypted files with plaintext footer.
-
-
Method Detail
-
values
public static FileMetaData._Fields[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (FileMetaData._Fields c : FileMetaData._Fields.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static FileMetaData._Fields valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
findByThriftId
public static FileMetaData._Fields findByThriftId(int fieldId)
Find the _Fields constant that matches fieldId, or null if its not found.
-
findByThriftIdOrThrow
public static FileMetaData._Fields findByThriftIdOrThrow(int fieldId)
Find the _Fields constant that matches fieldId, throwing an exception if it is not found.
-
findByName
public static FileMetaData._Fields findByName(String name)
Find the _Fields constant that matches name, or null if its not found.
-
getThriftFieldId
public short getThriftFieldId()
- Specified by:
getThriftFieldIdin interfaceorg.apache.thrift.TFieldIdEnum
-
getFieldName
public String getFieldName()
- Specified by:
getFieldNamein interfaceorg.apache.thrift.TFieldIdEnum
-
-