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_COUNT
count of distinct values occurringMAX
DEPRECATED: min and max value of the column.MAX_VALUE
Min and max values for the column, determined by its ColumnOrder.MIN
MIN_VALUE
NULL_COUNT
count of null value in the column
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Statistics._Fields
findByName(String name)
Find the _Fields constant that matches name, or null if its not found.static Statistics._Fields
findByThriftId(int fieldId)
Find the _Fields constant that matches fieldId, or null if its not found.static Statistics._Fields
findByThriftIdOrThrow(int fieldId)
Find the _Fields constant that matches fieldId, throwing an exception if it is not found.String
getFieldName()
short
getThriftFieldId()
static Statistics._Fields
valueOf(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 value in the column
-
DISTINCT_COUNT
public static final Statistics._Fields DISTINCT_COUNT
count of distinct values occurring
-
MAX_VALUE
public static final Statistics._Fields MAX_VALUE
Min and max values for the column, determined by its ColumnOrder. 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
-
-
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:
getThriftFieldId
in interfaceorg.apache.thrift.TFieldIdEnum
-
getFieldName
public String getFieldName()
- Specified by:
getFieldName
in interfaceorg.apache.thrift.TFieldIdEnum
-
-