Package org.apache.arrow.adbc.core
Enum StandardStatistics
- All Implemented Interfaces:
Serializable
,Comparable<StandardStatistics>
Definitions of standard statistic names/keys.
Statistic names are returned from AdbcConnection.getStatistics(String, String, String, boolean)
in a dictionary-encoded form. This class provides the names and dictionary-encoded form
of statistics defined by ADBC.
-
Enum Constant Summary
Enum ConstantDescriptionThe average byte width statistic.The distinct value count (NDV) statistic.The max byte width statistic.The max value statistic.The min value statistic.The null count statistic.The row count statistic. -
Method Summary
Modifier and TypeMethodDescriptionshort
getKey()
Get the dictionary-encoded name.getName()
Get the statistic name.static StandardStatistics
Returns the enum constant of this type with the specified name.static StandardStatistics[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
AVERAGE_BYTE_WIDTH
The average byte width statistic. The average size in bytes of a row in the column. Value type is float64.For example, this is roughly the average length of a string for a string column.
-
DISTINCT_COUNT
The distinct value count (NDV) statistic. The number of distinct values in the column. Value type is int64 (when not approximate) or float64 (when approximate). -
MAX_BYTE_WIDTH
The max byte width statistic. The maximum size in bytes of a row in the column. Value type is int64 (when not approximate) or float64 (when approximate).For example, this is the maximum length of a string for a string column.
-
MAX_VALUE
The max value statistic. Value type is column-dependent. -
MIN_VALUE
The min value statistic. Value type is column-dependent. -
NULL_COUNT
The null count statistic. The number of values that are null in the column. Value type is int64 (when not approximate) or float64 (when approximate). -
ROW_COUNT
The row count statistic. The number of rows in the column or table. Value type is int64 (when not approximate) or float64 (when approximate).
-
-
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
-
getName
Get the statistic name. -
getKey
public short getKey()Get the dictionary-encoded name.
-