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 Details

    • 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
    • NAN_COUNT

      public static final Statistics._Fields 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

      public static Statistics._Fields[] 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

      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 name
      NullPointerException - 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 interface org.apache.thrift.TFieldIdEnum
    • getFieldName

      public String getFieldName()
      Specified by:
      getFieldName in interface org.apache.thrift.TFieldIdEnum