@Internal public abstract class AbstractArrowPythonAggregateFunctionOperator extends AbstractStatelessFunctionOperator<org.apache.flink.table.data.RowData,org.apache.flink.table.data.RowData,org.apache.flink.table.data.RowData>
AggregateFunction.| 限定符和类型 | 字段和说明 |
|---|---|
protected ArrowSerializer |
arrowSerializer |
protected int |
currentBatchCount
The current number of elements to be included in an arrow batch.
|
protected org.apache.flink.table.functions.python.PythonFunctionInfo[] |
pandasAggFunctions
The Pandas
AggregateFunctions to be executed. |
protected org.apache.flink.table.data.utils.JoinedRowData |
reuseJoinedRow
The JoinedRowData reused holding the execution result.
|
protected StreamRecordRowDataWrappingCollector |
rowDataWrapper
The collector used to collect records.
|
bais, baisWrapper, baos, baosWrapper, forwardedInputQueue, inputType, udfInputType, udfOutputTypepythonFunctionRunnerbundleFinishedCallback, config, elementCount, lastFinishBundleTime, maxBundleSize, systemEnvEnabled| 构造器和说明 |
|---|
AbstractArrowPythonAggregateFunctionOperator(org.apache.flink.configuration.Configuration config,
org.apache.flink.table.functions.python.PythonFunctionInfo[] pandasAggFunctions,
org.apache.flink.table.types.logical.RowType inputType,
org.apache.flink.table.types.logical.RowType udfInputType,
org.apache.flink.table.types.logical.RowType udfOutputType,
org.apache.flink.table.runtime.generated.GeneratedProjection udafInputGeneratedProjection) |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
close() |
FlinkFnApi.CoderInfoDescriptor |
createInputCoderInfoDescriptor(org.apache.flink.table.types.logical.RowType runnerInputType) |
FlinkFnApi.CoderInfoDescriptor |
createOutputCoderInfoDescriptor(org.apache.flink.table.types.logical.RowType runnerOutType) |
FlinkFnApi.UserDefinedFunctions |
createUserDefinedFunctionsProto()
Gets the proto representation of the Python user-defined functions to be executed.
|
org.apache.flink.table.data.RowData |
getFunctionInput(org.apache.flink.table.data.RowData element) |
String |
getFunctionUrn() |
org.apache.flink.table.functions.python.PythonEnv |
getPythonEnv()
Returns the
PythonEnv used to create PythonEnvironmentManager.. |
boolean |
isBundleFinished()
Returns whether the bundle is finished.
|
void |
open() |
void |
processElement(org.apache.flink.streaming.runtime.streamrecord.StreamRecord<org.apache.flink.table.data.RowData> element) |
bufferInput, createPythonFunctionRunner, processElementInternalendInputcreatePythonEnvironmentManager, emitResult, emitResults, invokeFinishBundlecheckInvokeFinishBundleByCount, finish, getConfiguration, getFlinkMetricContainer, prepareSnapshotPreBarrier, processWatermark, setCurrentKeygetChainingStrategy, getContainingTask, getCurrentKey, 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, waitfinish, getMetricGroup, getOperatorAttributes, getOperatorID, initializeState, prepareSnapshotPreBarrier, setKeyContextElement1, setKeyContextElement2, snapshotStatenotifyCheckpointAborted, notifyCheckpointCompleteprotected final org.apache.flink.table.functions.python.PythonFunctionInfo[] pandasAggFunctions
AggregateFunctions to be executed.protected transient ArrowSerializer arrowSerializer
protected transient StreamRecordRowDataWrappingCollector rowDataWrapper
protected transient org.apache.flink.table.data.utils.JoinedRowData reuseJoinedRow
protected transient int currentBatchCount
public AbstractArrowPythonAggregateFunctionOperator(org.apache.flink.configuration.Configuration config,
org.apache.flink.table.functions.python.PythonFunctionInfo[] pandasAggFunctions,
org.apache.flink.table.types.logical.RowType inputType,
org.apache.flink.table.types.logical.RowType udfInputType,
org.apache.flink.table.types.logical.RowType udfOutputType,
org.apache.flink.table.runtime.generated.GeneratedProjection udafInputGeneratedProjection)
public void open()
throws Exception
open 在接口中 org.apache.flink.streaming.api.operators.StreamOperator<org.apache.flink.table.data.RowData>open 在类中 AbstractStatelessFunctionOperator<org.apache.flink.table.data.RowData,org.apache.flink.table.data.RowData,org.apache.flink.table.data.RowData>Exceptionpublic void close()
throws Exception
close 在接口中 org.apache.flink.streaming.api.operators.StreamOperator<org.apache.flink.table.data.RowData>close 在类中 AbstractExternalPythonFunctionOperator<org.apache.flink.table.data.RowData>Exceptionpublic void processElement(org.apache.flink.streaming.runtime.streamrecord.StreamRecord<org.apache.flink.table.data.RowData> element)
throws Exception
processElement 在接口中 org.apache.flink.streaming.api.operators.Input<org.apache.flink.table.data.RowData>processElement 在类中 AbstractStatelessFunctionOperator<org.apache.flink.table.data.RowData,org.apache.flink.table.data.RowData,org.apache.flink.table.data.RowData>Exceptionpublic boolean isBundleFinished()
AbstractPythonFunctionOperatorisBundleFinished 在类中 AbstractPythonFunctionOperator<org.apache.flink.table.data.RowData>public org.apache.flink.table.functions.python.PythonEnv getPythonEnv()
PythonEnv used to create PythonEnvironmentManager..getPythonEnv 在类中 AbstractExternalPythonFunctionOperator<org.apache.flink.table.data.RowData>public String getFunctionUrn()
getFunctionUrn 在类中 AbstractStatelessFunctionOperator<org.apache.flink.table.data.RowData,org.apache.flink.table.data.RowData,org.apache.flink.table.data.RowData>public FlinkFnApi.CoderInfoDescriptor createInputCoderInfoDescriptor(org.apache.flink.table.types.logical.RowType runnerInputType)
createInputCoderInfoDescriptor 在类中 AbstractStatelessFunctionOperator<org.apache.flink.table.data.RowData,org.apache.flink.table.data.RowData,org.apache.flink.table.data.RowData>public FlinkFnApi.CoderInfoDescriptor createOutputCoderInfoDescriptor(org.apache.flink.table.types.logical.RowType runnerOutType)
createOutputCoderInfoDescriptor 在类中 AbstractStatelessFunctionOperator<org.apache.flink.table.data.RowData,org.apache.flink.table.data.RowData,org.apache.flink.table.data.RowData>public org.apache.flink.table.data.RowData getFunctionInput(org.apache.flink.table.data.RowData element)
getFunctionInput 在类中 AbstractStatelessFunctionOperator<org.apache.flink.table.data.RowData,org.apache.flink.table.data.RowData,org.apache.flink.table.data.RowData>public FlinkFnApi.UserDefinedFunctions createUserDefinedFunctionsProto()
AbstractStatelessFunctionOperatorcreateUserDefinedFunctionsProto 在类中 AbstractStatelessFunctionOperator<org.apache.flink.table.data.RowData,org.apache.flink.table.data.RowData,org.apache.flink.table.data.RowData>Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.