Enum BuiltInPythonAggregateFunction
java.lang.Object
java.lang.Enum<BuiltInPythonAggregateFunction>
org.apache.flink.table.functions.python.BuiltInPythonAggregateFunction
- All Implemented Interfaces:
Serializable,Comparable<BuiltInPythonAggregateFunction>,PythonFunction
@Internal
public enum BuiltInPythonAggregateFunction
extends Enum<BuiltInPythonAggregateFunction>
implements PythonFunction
The list of the built-in aggregate functions which can be mixed with the Python UDAF.
-
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionReturns the Python execution environment.byte[]Returns the serialized representation of the user-defined python function.Returns the enum constant of this type with the specified name.static BuiltInPythonAggregateFunction[]values()Returns an array containing the constants of this enum type, in the order they are declared.Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOfMethods inherited from interface org.apache.flink.table.functions.python.PythonFunction
getPythonFunctionKind, takesRowAsInput
-
Enum Constant Details
-
AVG
-
COUNT1
-
COUNT
-
FIRST_VALUE
-
FIRST_VALUE_RETRACT
-
LAST_VALUE
-
LAST_VALUE_RETRACT
-
LIST_AGG
-
LIST_AGG_RETRACT
-
LIST_AGG_WS_RETRACT
-
MAX
-
MAX_RETRACT
-
MIN
-
MIN_RETRACT
-
INT_SUM0
-
FLOAT_SUM0
-
DECIMAL_SUM0
-
SUM
-
SUM_RETRACT
-
-
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
-
getSerializedPythonFunction
public byte[] getSerializedPythonFunction()Description copied from interface:PythonFunctionReturns the serialized representation of the user-defined python function.- Specified by:
getSerializedPythonFunctionin interfacePythonFunction
-
getPythonEnv
Description copied from interface:PythonFunctionReturns the Python execution environment.- Specified by:
getPythonEnvin interfacePythonFunction
-