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.| Constructor and Description |
|---|
SinkOperator(org.apache.flink.streaming.api.functions.sink.SinkFunction<org.apache.flink.table.data.RowData> sinkFunction,
int rowtimeFieldIndex) |
| Modifier and Type | Method and Description |
|---|---|
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, finish, 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, hasKeyContext1, hasKeyContext2, initializeState, isUsingCustomRawKeyedState, prepareSnapshotPreBarrier, processLatencyMarker, processLatencyMarker1, processLatencyMarker2, processRecordAttributes, processRecordAttributes1, processRecordAttributes2, processWatermark1, processWatermark2, processWatermarkStatus, processWatermarkStatus1, processWatermarkStatus2, setChainingStrategy, setCurrentKey, setKeyContextElement1, setKeyContextElement2, setProcessingTimeService, snapshotStateclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitsetKeyContextElementclose, finish, getMetricGroup, getOperatorID, initializeState, prepareSnapshotPreBarrier, setKeyContextElement1, setKeyContextElement2, snapshotStatenotifyCheckpointAborted, notifyCheckpointCompletegetCurrentKey, setCurrentKeypublic SinkOperator(org.apache.flink.streaming.api.functions.sink.SinkFunction<org.apache.flink.table.data.RowData> sinkFunction,
int rowtimeFieldIndex)
public void open()
throws Exception
open in interface org.apache.flink.streaming.api.operators.StreamOperator<Object>open in class org.apache.flink.streaming.api.operators.AbstractUdfStreamOperator<Object,org.apache.flink.streaming.api.functions.sink.SinkFunction<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 in interface org.apache.flink.streaming.api.operators.Input<org.apache.flink.table.data.RowData>Exceptionprotected void reportOrForwardLatencyMarker(org.apache.flink.streaming.runtime.streamrecord.LatencyMarker marker)
reportOrForwardLatencyMarker in class org.apache.flink.streaming.api.operators.AbstractStreamOperator<Object>public void processWatermark(org.apache.flink.streaming.api.watermark.Watermark mark)
throws Exception
Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.