@Internal public class PythonStreamGroupWindowAggregateOperator<K,W extends org.apache.flink.table.runtime.operators.window.Window> extends AbstractPythonStreamAggregateOperator implements org.apache.flink.streaming.api.operators.Triggerable<K,W>
bais, baisWrapper, baos, baosWrapper, inputType, outputType, rowDataWrapper, userDefinedFunctionInputType, userDefinedFunctionOutputTypepythonFunctionRunnerbundleFinishedCallback, config, elementCount, lastFinishBundleTime, maxBundleSize, systemEnvEnabled| 限定符 | 构造器和说明 |
|---|---|
protected |
PythonStreamGroupWindowAggregateOperator(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.runtime.dataview.DataViewSpec[][] dataViewSpecs,
int[] grouping,
int indexOfCountStar,
boolean generateUpdateBefore,
boolean countStarInserted,
int inputTimeFieldIndex,
org.apache.flink.table.runtime.operators.window.groupwindow.assigners.GroupWindowAssigner<W> windowAssigner,
FlinkFnApi.GroupWindow.WindowType windowType,
boolean isRowTime,
boolean isTimeWindow,
long size,
long slide,
long gap,
long allowedLateness,
org.apache.flink.table.runtime.groupwindow.NamedWindowProperty[] namedProperties,
ZoneId shiftTimeZone) |
| 限定符和类型 | 方法和说明 |
|---|---|
FlinkFnApi.CoderInfoDescriptor |
createInputCoderInfoDescriptor(org.apache.flink.table.types.logical.RowType runnerInputType) |
FlinkFnApi.CoderInfoDescriptor |
createOutputCoderInfoDescriptor(org.apache.flink.table.types.logical.RowType runnerOutType) |
static <K,W extends org.apache.flink.table.runtime.operators.window.Window> |
createSessionGroupWindowAggregateOperator(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.runtime.dataview.DataViewSpec[][] dataViewSpecs,
int[] grouping,
int indexOfCountStar,
boolean generateUpdateBefore,
boolean countStarInserted,
int inputTimeFieldIndex,
org.apache.flink.table.runtime.operators.window.groupwindow.assigners.GroupWindowAssigner<W> windowAssigner,
boolean isRowTime,
long gap,
long allowedLateness,
org.apache.flink.table.runtime.groupwindow.NamedWindowProperty[] namedProperties,
ZoneId shiftTimeZone) |
static <K,W extends org.apache.flink.table.runtime.operators.window.Window> |
createSlidingGroupWindowAggregateOperator(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.runtime.dataview.DataViewSpec[][] dataViewSpecs,
int[] grouping,
int indexOfCountStar,
boolean generateUpdateBefore,
boolean countStarInserted,
int inputTimeFieldIndex,
org.apache.flink.table.runtime.operators.window.groupwindow.assigners.GroupWindowAssigner<W> windowAssigner,
boolean isRowTime,
boolean isTimeWindow,
long size,
long slide,
long allowedLateness,
org.apache.flink.table.runtime.groupwindow.NamedWindowProperty[] namedProperties,
ZoneId shiftTimeZone) |
static <K,W extends org.apache.flink.table.runtime.operators.window.Window> |
createTumblingGroupWindowAggregateOperator(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.runtime.dataview.DataViewSpec[][] dataViewSpecs,
int[] grouping,
int indexOfCountStar,
boolean generateUpdateBefore,
boolean countStarInserted,
int inputTimeFieldIndex,
org.apache.flink.table.runtime.operators.window.groupwindow.assigners.GroupWindowAssigner<W> windowAssigner,
boolean isRowTime,
boolean isTimeWindow,
long size,
long allowedLateness,
org.apache.flink.table.runtime.groupwindow.NamedWindowProperty[] namedProperties,
ZoneId shiftTimeZone) |
org.apache.flink.table.types.logical.RowType |
createUserDefinedFunctionInputType() |
org.apache.flink.table.types.logical.RowType |
createUserDefinedFunctionOutputType() |
void |
emitResult(org.apache.flink.api.java.tuple.Tuple3<String,byte[],Integer> resultTuple)
Sends the execution result to the downstream operator.
|
String |
getFunctionUrn() |
protected FlinkFnApi.UserDefinedAggregateFunctions |
getUserDefinedFunctionsProto()
Gets the proto representation of the Python user-defined aggregate functions to be executed.
|
org.apache.flink.api.common.typeutils.TypeSerializer<W> |
getWindowSerializer() |
void |
onEventTime(org.apache.flink.streaming.api.operators.InternalTimer<K,W> timer) |
void |
onProcessingTime(org.apache.flink.streaming.api.operators.InternalTimer<K,W> timer) |
void |
open() |
void |
processElementInternal(org.apache.flink.table.data.RowData value) |
createPythonFunctionRunner, getCurrentKey, getKeyType, getPythonEnv, processElement, setCurrentKeyendInputclose, createPythonEnvironmentManager, emitResults, invokeFinishBundlecheckInvokeFinishBundleByCount, finish, getConfiguration, getFlinkMetricContainer, isBundleFinished, prepareSnapshotPreBarrier, processWatermarkgetChainingStrategy, getContainingTask, getExecutionConfig, getInternalTimerService, getKeyedStateBackend, getKeyedStateStore, getMetricGroup, getOperatorConfig, getOperatorID, getOperatorName, getOperatorStateBackend, getOrCreateKeyedState, getPartitionedState, getPartitionedState, getProcessingTimeService, getRuntimeContext, getStateKeySelector1, getStateKeySelector2, getTimeServiceManager, getUserCodeClassloader, hasKeyContext1, hasKeyContext2, initializeState, initializeState, isUsingCustomRawKeyedState, notifyCheckpointAborted, notifyCheckpointComplete, processLatencyMarker, processLatencyMarker1, processLatencyMarker2, processRecordAttributes, processRecordAttributes1, processRecordAttributes2, processWatermark1, processWatermark2, processWatermarkStatus, processWatermarkStatus1, processWatermarkStatus2, reportOrForwardLatencyMarker, setChainingStrategy, setKeyContextElement1, setKeyContextElement2, setMailboxExecutor, setProcessingTimeService, setup, snapshotState, snapshotState, useSplittableTimersclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitclose, finish, getMetricGroup, getOperatorAttributes, getOperatorID, initializeState, prepareSnapshotPreBarrier, setKeyContextElement1, setKeyContextElement2, snapshotStatenotifyCheckpointAborted, notifyCheckpointCompleteprotected PythonStreamGroupWindowAggregateOperator(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.runtime.dataview.DataViewSpec[][] dataViewSpecs,
int[] grouping,
int indexOfCountStar,
boolean generateUpdateBefore,
boolean countStarInserted,
int inputTimeFieldIndex,
org.apache.flink.table.runtime.operators.window.groupwindow.assigners.GroupWindowAssigner<W> windowAssigner,
FlinkFnApi.GroupWindow.WindowType windowType,
boolean isRowTime,
boolean isTimeWindow,
long size,
long slide,
long gap,
long allowedLateness,
org.apache.flink.table.runtime.groupwindow.NamedWindowProperty[] namedProperties,
ZoneId shiftTimeZone)
public static <K,W extends org.apache.flink.table.runtime.operators.window.Window> PythonStreamGroupWindowAggregateOperator<K,W> createTumblingGroupWindowAggregateOperator(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.runtime.dataview.DataViewSpec[][] dataViewSpecs, int[] grouping, int indexOfCountStar, boolean generateUpdateBefore, boolean countStarInserted, int inputTimeFieldIndex, org.apache.flink.table.runtime.operators.window.groupwindow.assigners.GroupWindowAssigner<W> windowAssigner, boolean isRowTime, boolean isTimeWindow, long size, long allowedLateness, org.apache.flink.table.runtime.groupwindow.NamedWindowProperty[] namedProperties, ZoneId shiftTimeZone)
public static <K,W extends org.apache.flink.table.runtime.operators.window.Window> PythonStreamGroupWindowAggregateOperator<K,W> createSlidingGroupWindowAggregateOperator(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.runtime.dataview.DataViewSpec[][] dataViewSpecs, int[] grouping, int indexOfCountStar, boolean generateUpdateBefore, boolean countStarInserted, int inputTimeFieldIndex, org.apache.flink.table.runtime.operators.window.groupwindow.assigners.GroupWindowAssigner<W> windowAssigner, boolean isRowTime, boolean isTimeWindow, long size, long slide, long allowedLateness, org.apache.flink.table.runtime.groupwindow.NamedWindowProperty[] namedProperties, ZoneId shiftTimeZone)
public static <K,W extends org.apache.flink.table.runtime.operators.window.Window> PythonStreamGroupWindowAggregateOperator<K,W> createSessionGroupWindowAggregateOperator(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.runtime.dataview.DataViewSpec[][] dataViewSpecs, int[] grouping, int indexOfCountStar, boolean generateUpdateBefore, boolean countStarInserted, int inputTimeFieldIndex, org.apache.flink.table.runtime.operators.window.groupwindow.assigners.GroupWindowAssigner<W> windowAssigner, boolean isRowTime, long gap, long allowedLateness, org.apache.flink.table.runtime.groupwindow.NamedWindowProperty[] namedProperties, ZoneId shiftTimeZone)
public void open()
throws Exception
open 在接口中 org.apache.flink.streaming.api.operators.StreamOperator<org.apache.flink.table.data.RowData>open 在类中 AbstractPythonStreamAggregateOperatorExceptionpublic void processElementInternal(org.apache.flink.table.data.RowData value)
throws Exception
public void emitResult(org.apache.flink.api.java.tuple.Tuple3<String,byte[],Integer> resultTuple) throws Exception
emitResult 在类中 AbstractExternalPythonFunctionOperator<org.apache.flink.table.data.RowData>Exceptionpublic String getFunctionUrn()
public org.apache.flink.table.types.logical.RowType createUserDefinedFunctionInputType()
public org.apache.flink.table.types.logical.RowType createUserDefinedFunctionOutputType()
protected FlinkFnApi.UserDefinedAggregateFunctions getUserDefinedFunctionsProto()
public org.apache.flink.api.common.typeutils.TypeSerializer<W> getWindowSerializer()
public void onEventTime(org.apache.flink.streaming.api.operators.InternalTimer<K,W> timer) throws Exception
public void onProcessingTime(org.apache.flink.streaming.api.operators.InternalTimer<K,W> timer) throws Exception
public FlinkFnApi.CoderInfoDescriptor createInputCoderInfoDescriptor(org.apache.flink.table.types.logical.RowType runnerInputType)
public FlinkFnApi.CoderInfoDescriptor createOutputCoderInfoDescriptor(org.apache.flink.table.types.logical.RowType runnerOutType)
Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.