@Internal public abstract class AbstractPythonStreamGroupAggregateOperator extends AbstractPythonStreamAggregateOperator implements org.apache.flink.streaming.api.operators.Triggerable<org.apache.flink.table.data.RowData,org.apache.flink.runtime.state.VoidNamespace>, org.apache.flink.table.runtime.functions.CleanupState
PythonStreamGroupAggregateOperator and PythonStreamGroupTableAggregateOperator.bais, baisWrapper, baos, baosWrapper, FLINK_AGGREGATE_FUNCTION_SCHEMA_CODER_URN, inputType, outputType, rowDataWrapper, userDefinedFunctionInputType, userDefinedFunctionOutputTypeelementCount, maxBundleSize, pythonFunctionRunner| Constructor and Description |
|---|
AbstractPythonStreamGroupAggregateOperator(org.apache.flink.configuration.Configuration config,
org.apache.flink.table.types.logical.RowType inputType,
org.apache.flink.table.types.logical.RowType outputType,
org.apache.flink.table.functions.python.PythonAggregateFunctionInfo[] aggregateFunctions,
org.apache.flink.table.planner.typeutils.DataViewUtils.DataViewSpec[][] dataViewSpecs,
int[] grouping,
int indexOfCountStar,
boolean generateUpdateBefore,
long minRetentionTime,
long maxRetentionTime,
FlinkFnApi.CoderParam.OutputMode outputMode) |
| Modifier and Type | Method and Description |
|---|---|
void |
emitResult(org.apache.flink.api.java.tuple.Tuple2<byte[],Integer> resultTuple)
Sends the execution result to the downstream operator.
|
org.apache.flink.table.types.logical.RowType |
getUserDefinedFunctionInputType() |
org.apache.flink.table.types.logical.RowType |
getUserDefinedFunctionOutputType() |
protected FlinkFnApi.UserDefinedAggregateFunctions |
getUserDefinedFunctionsProto()
Gets the proto representation of the Python user-defined aggregate functions to be executed.
|
void |
onEventTime(org.apache.flink.streaming.api.operators.InternalTimer<org.apache.flink.table.data.RowData,org.apache.flink.runtime.state.VoidNamespace> timer)
Invoked when an event-time timer fires.
|
void |
onProcessingTime(org.apache.flink.streaming.api.operators.InternalTimer<org.apache.flink.table.data.RowData,org.apache.flink.runtime.state.VoidNamespace> timer)
Invoked when a processing-time timer fires.
|
void |
open() |
void |
processElementInternal(org.apache.flink.table.data.RowData value) |
createPythonFunctionRunner, getCurrentKey, getFunctionUrn, getKeyType, getPythonEnv, processElement, setCurrentKeyendInputcheckInvokeFinishBundleByCount, close, createPythonEnvironmentManager, dispose, emitResults, getConfig, getFlinkMetricContainer, getPythonConfig, invokeFinishBundle, isBundleFinished, prepareSnapshotPreBarrier, processWatermark, setPythonConfiggetChainingStrategy, getContainingTask, getExecutionConfig, getInternalTimerService, getKeyedStateBackend, getKeyedStateStore, getMetricGroup, getOperatorConfig, getOperatorID, getOperatorName, getOperatorStateBackend, getOrCreateKeyedState, getPartitionedState, getPartitionedState, getProcessingTimeService, getRuntimeContext, getTimeServiceManager, getUserCodeClassloader, initializeState, initializeState, isUsingCustomRawKeyedState, notifyCheckpointAborted, notifyCheckpointComplete, processLatencyMarker, processLatencyMarker1, processLatencyMarker2, processWatermark1, processWatermark2, reportOrForwardLatencyMarker, setChainingStrategy, setKeyContextElement1, setKeyContextElement2, setProcessingTimeService, setup, snapshotState, snapshotStateclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitregisterProcessingCleanupTimersetKeyContextElementclose, dispose, getMetricGroup, getOperatorID, initializeState, prepareSnapshotPreBarrier, setKeyContextElement1, setKeyContextElement2, snapshotStatepublic AbstractPythonStreamGroupAggregateOperator(org.apache.flink.configuration.Configuration config,
org.apache.flink.table.types.logical.RowType inputType,
org.apache.flink.table.types.logical.RowType outputType,
org.apache.flink.table.functions.python.PythonAggregateFunctionInfo[] aggregateFunctions,
org.apache.flink.table.planner.typeutils.DataViewUtils.DataViewSpec[][] dataViewSpecs,
int[] grouping,
int indexOfCountStar,
boolean generateUpdateBefore,
long minRetentionTime,
long maxRetentionTime,
FlinkFnApi.CoderParam.OutputMode outputMode)
public void open()
throws Exception
open in interface org.apache.flink.streaming.api.operators.StreamOperator<org.apache.flink.table.data.RowData>open in class AbstractPythonStreamAggregateOperatorExceptionpublic void onEventTime(org.apache.flink.streaming.api.operators.InternalTimer<org.apache.flink.table.data.RowData,org.apache.flink.runtime.state.VoidNamespace> timer)
onEventTime in interface org.apache.flink.streaming.api.operators.Triggerable<org.apache.flink.table.data.RowData,org.apache.flink.runtime.state.VoidNamespace>public void onProcessingTime(org.apache.flink.streaming.api.operators.InternalTimer<org.apache.flink.table.data.RowData,org.apache.flink.runtime.state.VoidNamespace> timer)
throws Exception
onProcessingTime in interface org.apache.flink.streaming.api.operators.Triggerable<org.apache.flink.table.data.RowData,org.apache.flink.runtime.state.VoidNamespace>Exceptionpublic void processElementInternal(org.apache.flink.table.data.RowData value)
throws Exception
processElementInternal in class AbstractPythonStreamAggregateOperatorExceptionpublic void emitResult(org.apache.flink.api.java.tuple.Tuple2<byte[],Integer> resultTuple) throws Exception
AbstractPythonFunctionOperatoremitResult in class AbstractPythonFunctionOperator<org.apache.flink.table.data.RowData>Exceptionpublic org.apache.flink.table.types.logical.RowType getUserDefinedFunctionInputType()
getUserDefinedFunctionInputType in class AbstractPythonStreamAggregateOperatorpublic org.apache.flink.table.types.logical.RowType getUserDefinedFunctionOutputType()
getUserDefinedFunctionOutputType in class AbstractPythonStreamAggregateOperatorprotected FlinkFnApi.UserDefinedAggregateFunctions getUserDefinedFunctionsProto()
AbstractPythonStreamAggregateOperatorgetUserDefinedFunctionsProto in class AbstractPythonStreamAggregateOperatorCopyright © 2014–2021 The Apache Software Foundation. All rights reserved.