@Internal public abstract class AbstractRowPythonScalarFunctionOperator extends AbstractPythonScalarFunctionOperator<org.apache.flink.table.runtime.types.CRow,org.apache.flink.table.runtime.types.CRow,Row>
ScalarFunction
operator for the legacy planner.AbstractStatelessFunctionOperator.StreamRecordCRowWrappingCollector, AbstractStatelessFunctionOperator.StreamRecordRowDataWrappingCollector
Modifier and Type | Field and Description |
---|---|
protected AbstractStatelessFunctionOperator.StreamRecordCRowWrappingCollector |
cRowWrapper
The collector used to collect records.
|
forwardedFields, scalarFunctions
bais, baisWrapper, forwardedInputQueue, inputType, outputType, userDefinedFunctionInputOffsets, userDefinedFunctionInputType, userDefinedFunctionOutputType, userDefinedFunctionResultQueue
chainingStrategy, latencyStats, LOG, metrics, output, processingTimeService
Constructor and Description |
---|
AbstractRowPythonScalarFunctionOperator(Configuration config,
PythonFunctionInfo[] scalarFunctions,
RowType inputType,
RowType outputType,
int[] udfInputOffsets,
int[] forwardedFields) |
Modifier and Type | Method and Description |
---|---|
void |
bufferInput(org.apache.flink.table.runtime.types.CRow input)
Buffers the specified input, it will be used to construct the operator result together with
the user-defined function execution result.
|
Row |
getFunctionInput(org.apache.flink.table.runtime.types.CRow element) |
void |
open()
This method is called immediately before any elements are processed, it should contain the
operator's initialization logic, e.g.
|
getPythonEnv
createPythonFunctionRunner, createPythonFunctionRunner, processElement
close, createPythonEnvironmentManager, dispose, emitResults, endInput, getFlinkMetricContainer, getPythonConfig, prepareSnapshotPreBarrier, processWatermark
getChainingStrategy, getContainingTask, getCurrentKey, getExecutionConfig, getInternalTimerService, getKeyedStateBackend, getKeyedStateStore, getMetricGroup, getOperatorConfig, getOperatorID, getOperatorName, getOperatorStateBackend, getOrCreateKeyedState, getPartitionedState, getPartitionedState, getProcessingTimeService, getRuntimeContext, getTimeServiceManager, getUserCodeClassloader, initializeState, initializeState, isUsingCustomRawKeyedState, notifyCheckpointAborted, notifyCheckpointComplete, numEventTimeTimers, numProcessingTimeTimers, processLatencyMarker, processLatencyMarker1, processLatencyMarker2, processWatermark1, processWatermark2, reportOrForwardLatencyMarker, setChainingStrategy, setCurrentKey, setKeyContextElement1, setKeyContextElement2, setProcessingTimeService, setup, snapshotState, snapshotState
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
processLatencyMarker
getMetricGroup, getOperatorID, initializeState, setKeyContextElement1, setKeyContextElement2, snapshotState
notifyCheckpointAborted, notifyCheckpointComplete
getCurrentKey, setCurrentKey
protected transient AbstractStatelessFunctionOperator.StreamRecordCRowWrappingCollector cRowWrapper
public AbstractRowPythonScalarFunctionOperator(Configuration config, PythonFunctionInfo[] scalarFunctions, RowType inputType, RowType outputType, int[] udfInputOffsets, int[] forwardedFields)
public void open() throws Exception
AbstractStreamOperator
The default implementation does nothing.
open
in interface StreamOperator<org.apache.flink.table.runtime.types.CRow>
open
in class AbstractPythonScalarFunctionOperator<org.apache.flink.table.runtime.types.CRow,org.apache.flink.table.runtime.types.CRow,Row>
Exception
- An exception in this method causes the operator to fail.public void bufferInput(org.apache.flink.table.runtime.types.CRow input)
AbstractStatelessFunctionOperator
bufferInput
in class AbstractStatelessFunctionOperator<org.apache.flink.table.runtime.types.CRow,org.apache.flink.table.runtime.types.CRow,Row>
public Row getFunctionInput(org.apache.flink.table.runtime.types.CRow element)
getFunctionInput
in class AbstractStatelessFunctionOperator<org.apache.flink.table.runtime.types.CRow,org.apache.flink.table.runtime.types.CRow,Row>
Copyright © 2014–2021 The Apache Software Foundation. All rights reserved.