Enum BuiltinAggregationFunction
- java.lang.Object
-
- java.lang.Enum<BuiltinAggregationFunction>
-
- org.apache.iotdb.commons.udf.builtin.BuiltinAggregationFunction
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<BuiltinAggregationFunction>
public enum BuiltinAggregationFunction extends java.lang.Enum<BuiltinAggregationFunction>
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static booleancanSplitToMultiPhases(java.lang.String name)static booleancanUseStatistics(java.lang.String name)java.lang.StringgetFunctionName()static java.util.Set<java.lang.String>getNativeFunctionNames()static BuiltinAggregationFunctionvalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static BuiltinAggregationFunction[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
MIN_TIME
public static final BuiltinAggregationFunction MIN_TIME
-
MAX_TIME
public static final BuiltinAggregationFunction MAX_TIME
-
MAX_VALUE
public static final BuiltinAggregationFunction MAX_VALUE
-
MIN_VALUE
public static final BuiltinAggregationFunction MIN_VALUE
-
EXTREME
public static final BuiltinAggregationFunction EXTREME
-
FIRST_VALUE
public static final BuiltinAggregationFunction FIRST_VALUE
-
LAST_VALUE
public static final BuiltinAggregationFunction LAST_VALUE
-
COUNT
public static final BuiltinAggregationFunction COUNT
-
AVG
public static final BuiltinAggregationFunction AVG
-
SUM
public static final BuiltinAggregationFunction SUM
-
COUNT_IF
public static final BuiltinAggregationFunction COUNT_IF
-
-
Method Detail
-
values
public static BuiltinAggregationFunction[] 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 (BuiltinAggregationFunction c : BuiltinAggregationFunction.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static BuiltinAggregationFunction valueOf(java.lang.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:
java.lang.IllegalArgumentException- if this enum type has no constant with the specified namejava.lang.NullPointerException- if the argument is null
-
getFunctionName
public java.lang.String getFunctionName()
-
getNativeFunctionNames
public static java.util.Set<java.lang.String> getNativeFunctionNames()
-
canUseStatistics
public static boolean canUseStatistics(java.lang.String name)
- Returns:
- if the Aggregation can use statistics to optimize
-
canSplitToMultiPhases
public static boolean canSplitToMultiPhases(java.lang.String name)
- Returns:
- if the Aggregation can split to multi phases
-
-