Package org.apache.parquet.format
Enum Statistics._Fields
- java.lang.Object
-
- java.lang.Enum<Statistics._Fields>
-
- org.apache.parquet.format.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 Constants Enum Constant Description DISTINCT_COUNTcount of distinct values occurringIS_MAX_VALUE_EXACTIf true, max_value is the actual maximum value for a columnIS_MIN_VALUE_EXACTIf true, min_value is the actual minimum value for a columnMAXDEPRECATED: min and max value of the column.MAX_VALUELower and upper bound values for the column, determined by its ColumnOrder.MINMIN_VALUENULL_COUNTCount of null values in the column.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static 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.StringgetFieldName()shortgetThriftFieldId()static Statistics._FieldsvalueOf(String name)Returns 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 Detail
-
MAX
public static final Statistics._Fields 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
public static final Statistics._Fields MIN
-
NULL_COUNT
public static final Statistics._Fields 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
public static final Statistics._Fields DISTINCT_COUNT
count of distinct values occurring
-
MAX_VALUE
public static final Statistics._Fields 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
public static final Statistics._Fields MIN_VALUE
-
IS_MAX_VALUE_EXACT
public static final Statistics._Fields IS_MAX_VALUE_EXACT
If true, max_value is the actual maximum value for a column
-
IS_MIN_VALUE_EXACT
public static final Statistics._Fields IS_MIN_VALUE_EXACT
If true, min_value is the actual minimum value for a column
-
-
Method Detail
-
values
public static Statistics._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 (Statistics._Fields c : Statistics._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 Statistics._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 Statistics._Fields findByThriftId(int fieldId)
Find the _Fields constant that matches fieldId, or null if its not found.
-
findByThriftIdOrThrow
public static Statistics._Fields findByThriftIdOrThrow(int fieldId)
Find the _Fields constant that matches fieldId, throwing an exception if it is not found.
-
findByName
public static Statistics._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
-
-