Package com.exasol.adapter.sql
Enum AggregateFunction
- java.lang.Object
-
- java.lang.Enum<AggregateFunction>
-
- com.exasol.adapter.sql.AggregateFunction
-
- All Implemented Interfaces:
Serializable,Comparable<AggregateFunction>
public enum AggregateFunction extends Enum<AggregateFunction>
List of all aggregation functions supported by EXASOL.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description APPROXIMATE_COUNT_DISTINCTAVGCOUNTEVERYFIRST_VALUEGEO_INTERSECTION_AGGREGATEGEO_UNION_AGGREGATEGROUP_CONCATLAST_VALUEMAXMEDIANMINMULSOMESTDDEVSTDDEV_POPSTDDEV_SAMPSUMVAR_POPVAR_SAMPVARIANCE
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanisSimple()True if the function is simple, i.e.StringtoString()static AggregateFunctionvalueOf(String name)Returns the enum constant of this type with the specified name.static AggregateFunction[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
COUNT
public static final AggregateFunction COUNT
-
SUM
public static final AggregateFunction SUM
-
MIN
public static final AggregateFunction MIN
-
MAX
public static final AggregateFunction MAX
-
AVG
public static final AggregateFunction AVG
-
MEDIAN
public static final AggregateFunction MEDIAN
-
FIRST_VALUE
public static final AggregateFunction FIRST_VALUE
-
LAST_VALUE
public static final AggregateFunction LAST_VALUE
-
STDDEV
public static final AggregateFunction STDDEV
-
STDDEV_POP
public static final AggregateFunction STDDEV_POP
-
STDDEV_SAMP
public static final AggregateFunction STDDEV_SAMP
-
VARIANCE
public static final AggregateFunction VARIANCE
-
VAR_POP
public static final AggregateFunction VAR_POP
-
VAR_SAMP
public static final AggregateFunction VAR_SAMP
-
GROUP_CONCAT
public static final AggregateFunction GROUP_CONCAT
-
APPROXIMATE_COUNT_DISTINCT
public static final AggregateFunction APPROXIMATE_COUNT_DISTINCT
-
GEO_INTERSECTION_AGGREGATE
public static final AggregateFunction GEO_INTERSECTION_AGGREGATE
-
GEO_UNION_AGGREGATE
public static final AggregateFunction GEO_UNION_AGGREGATE
-
MUL
public static final AggregateFunction MUL
-
EVERY
public static final AggregateFunction EVERY
-
SOME
public static final AggregateFunction SOME
-
-
Method Detail
-
values
public static AggregateFunction[] 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 (AggregateFunction c : AggregateFunction.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static AggregateFunction 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
-
isSimple
public boolean isSimple()
True if the function is simple, i.e. is handled bySqlFunctionAggregate, and false if it has it's own implementation.- Returns:
trueif the function is simple
-
toString
public String toString()
- Overrides:
toStringin classEnum<AggregateFunction>
-
-