public class SinkOperator extends org.apache.flink.streaming.api.operators.AbstractUdfStreamOperator<Object,org.apache.flink.streaming.api.functions.sink.SinkFunction<org.apache.flink.table.data.RowData>> implements org.apache.flink.streaming.api.operators.OneInputStreamOperator<org.apache.flink.table.data.RowData,Object>
StreamOperator for executing SinkFunctions. This operator
also checks writing null values into NOT NULL columns.| 构造器和说明 |
|---|
SinkOperator(org.apache.flink.streaming.api.functions.sink.SinkFunction<org.apache.flink.table.data.RowData> sinkFunction,
int rowtimeFieldIndex,
org.apache.flink.table.api.config.ExecutionConfigOptions.NotNullEnforcer notNullEnforcer,
int[] notNullFieldIndices,
String[] allFieldNames) |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
open() |
void |
processElement(org.apache.flink.streaming.runtime.streamrecord.StreamRecord<org.apache.flink.table.data.RowData> element) |
void |
processWatermark(org.apache.flink.streaming.api.watermark.Watermark mark) |
protected void |
reportOrForwardLatencyMarker(org.apache.flink.streaming.runtime.streamrecord.LatencyMarker marker) |
close, dispose, getUserFunction, getUserFunctionParameters, initializeState, notifyCheckpointAborted, notifyCheckpointComplete, setOutputType, setup, snapshotStategetChainingStrategy, getContainingTask, getCurrentKey, getExecutionConfig, getInternalTimerService, getKeyedStateBackend, getKeyedStateStore, getMetricGroup, getOperatorConfig, getOperatorID, getOperatorName, getOperatorStateBackend, getOrCreateKeyedState, getPartitionedState, getPartitionedState, getProcessingTimeService, getRuntimeContext, getTimeServiceManager, getUserCodeClassloader, initializeState, numEventTimeTimers, numProcessingTimeTimers, prepareSnapshotPreBarrier, processLatencyMarker, processLatencyMarker1, processLatencyMarker2, processWatermark1, processWatermark2, setChainingStrategy, setCurrentKey, setKeyContextElement1, setKeyContextElement2, setProcessingTimeService, snapshotStateclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitclose, dispose, getMetricGroup, getOperatorID, initializeState, prepareSnapshotPreBarrier, setKeyContextElement1, setKeyContextElement2, snapshotStatepublic SinkOperator(org.apache.flink.streaming.api.functions.sink.SinkFunction<org.apache.flink.table.data.RowData> sinkFunction,
int rowtimeFieldIndex,
org.apache.flink.table.api.config.ExecutionConfigOptions.NotNullEnforcer notNullEnforcer,
int[] notNullFieldIndices,
String[] allFieldNames)
public void open()
throws Exception
public void processElement(org.apache.flink.streaming.runtime.streamrecord.StreamRecord<org.apache.flink.table.data.RowData> element)
throws Exception
protected void reportOrForwardLatencyMarker(org.apache.flink.streaming.runtime.streamrecord.LatencyMarker marker)
reportOrForwardLatencyMarker 在类中 org.apache.flink.streaming.api.operators.AbstractStreamOperator<Object>public void processWatermark(org.apache.flink.streaming.api.watermark.Watermark mark)
throws Exception
Copyright © 2014–2020 The Apache Software Foundation. All rights reserved.