Package org.apache.parquet.format
Enum Statistics._Fields
- All Implemented Interfaces:
Serializable,Comparable<Statistics._Fields>,org.apache.thrift.TFieldIdEnum
- Enclosing class:
- Statistics
public static enum Statistics._Fields
extends Enum<Statistics._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 ConstantsEnum ConstantDescriptioncount of distinct values occurringIf true, max_value is the actual maximum value for a columnIf true, min_value is the actual minimum value for a columnDEPRECATED: min and max value of the column.Lower and upper bound values for the column, determined by its ColumnOrder.Count of NaN values in the column; only present if physical type is FLOAT or DOUBLE, or logical type is FLOAT16.Count of null values in the column. -
Method Summary
Modifier and TypeMethodDescriptionstatic Statistics._FieldsfindByName(String name) Find the _Fields constant that matches name, or null if its not found.static Statistics._FieldsfindByThriftId(int fieldId) Find the _Fields constant that matches fieldId, or null if its not found.static Statistics._FieldsfindByThriftIdOrThrow(int fieldId) Find the _Fields constant that matches fieldId, throwing an exception if it is not found.shortstatic Statistics._FieldsReturns the enum constant of this type with the specified name.static Statistics._Fields[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
MAX
DEPRECATED: min and max value of the column. Use min_value and max_value. Values are encoded using PLAIN encoding, except that variable-length byte arrays do not include a length prefix. These fields encode min and max values determined by signed comparison only. New files should use the correct order for a column's logical type and store the values in the min_value and max_value fields. To support older readers, these may be set when the column order is signed. -
MIN
-
NULL_COUNT
Count of null values in the column. Writers SHOULD always write this field even if it is zero (i.e. no null value) or the column is not nullable. Readers MUST distinguish between null_count not being present and null_count == 0. If null_count is not present, readers MUST NOT assume null_count == 0. -
DISTINCT_COUNT
count of distinct values occurring -
MAX_VALUE
Lower and upper bound values for the column, determined by its ColumnOrder. These may be the actual minimum and maximum values found on a page or column chunk, but can also be (more compact) values that do not exist on a page or column chunk. For example, instead of storing "Blart Versenwald III", a writer may set min_value="B", max_value="C". Such more compact values must still be valid values within the column's logical type. Values are encoded using PLAIN encoding, except that variable-length byte arrays do not include a length prefix. -
MIN_VALUE
-
IS_MAX_VALUE_EXACT
If true, max_value is the actual maximum value for a column -
IS_MIN_VALUE_EXACT
If true, min_value is the actual minimum value for a column -
NAN_COUNT
Count of NaN values in the column; only present if physical type is FLOAT or DOUBLE, or logical type is FLOAT16. If this field is not present, readers MUST assume NaNs may be present (i.e. MUST assume nan_count > 0 and MAY NOT assume nan_count == 0).
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
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
Find the _Fields constant that matches fieldId, or null if its not found. -
findByThriftIdOrThrow
Find the _Fields constant that matches fieldId, throwing an exception if it is not found. -
findByName
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
- Specified by:
getFieldNamein interfaceorg.apache.thrift.TFieldIdEnum
-