Enum SizeStatistics._Fields

    • Enum Constant Detail

      • UNENCODED_BYTE_ARRAY_DATA_BYTES

        public static final SizeStatistics._Fields UNENCODED_BYTE_ARRAY_DATA_BYTES
        The number of physical bytes stored for BYTE_ARRAY data values assuming no encoding. This is exclusive of the bytes needed to store the length of each byte array. In other words, this field is equivalent to the `(size of PLAIN-ENCODING the byte array values) - (4 bytes * number of values written)`. To determine unencoded sizes of other types readers can use schema information multiplied by the number of non-null and null values. The number of null/non-null values can be inferred from the histograms below. For example, if a column chunk is dictionary-encoded with dictionary ["a", "bc", "cde"], and a data page contains the indices [0, 0, 1, 2], then this value for that data page should be 7 (1 + 1 + 2 + 3). This field should only be set for types that use BYTE_ARRAY as their physical type.
      • REPETITION_LEVEL_HISTOGRAM

        public static final SizeStatistics._Fields REPETITION_LEVEL_HISTOGRAM
        When present, there is expected to be one element corresponding to each repetition (i.e. size=max repetition_level+1) where each element represents the number of times the repetition level was observed in the data. This field may be omitted if max_repetition_level is 0 without loss of information.
      • DEFINITION_LEVEL_HISTOGRAM

        public static final SizeStatistics._Fields DEFINITION_LEVEL_HISTOGRAM
        Same as repetition_level_histogram except for definition levels. This field may be omitted if max_definition_level is 0 or 1 without loss of information.
    • Method Detail

      • values

        public static SizeStatistics._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 (SizeStatistics._Fields c : SizeStatistics._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 SizeStatistics._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 SizeStatistics._Fields findByThriftId​(int fieldId)
        Find the _Fields constant that matches fieldId, or null if its not found.
      • findByThriftIdOrThrow

        public static SizeStatistics._Fields findByThriftIdOrThrow​(int fieldId)
        Find the _Fields constant that matches fieldId, throwing an exception if it is not found.
      • findByName

        public static SizeStatistics._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