public class StoreWriteOperator extends PrepareCommitOperator
PrepareCommitOperator to write records.| 构造器和说明 |
|---|
StoreWriteOperator(org.apache.flink.table.store.table.FileStoreTable table,
Map<String,String> overwritePartition,
org.apache.flink.table.store.table.sink.LogSinkFunction logSinkFunction) |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
close() |
void |
finish() |
void |
initializeState(org.apache.flink.runtime.state.StateInitializationContext context) |
void |
notifyCheckpointAborted(long checkpointId) |
void |
notifyCheckpointComplete(long checkpointId) |
void |
open() |
protected List<Committable> |
prepareCommit(boolean endOfInput,
long checkpointId) |
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) |
void |
setup(org.apache.flink.streaming.runtime.tasks.StreamTask<?,?> containingTask,
org.apache.flink.streaming.api.graph.StreamConfig config,
org.apache.flink.streaming.api.operators.Output<org.apache.flink.streaming.runtime.streamrecord.StreamRecord<Committable>> output) |
void |
snapshotState(org.apache.flink.runtime.state.StateSnapshotContext context) |
endInput, prepareSnapshotPreBarriergetChainingStrategy, getContainingTask, getCurrentKey, getExecutionConfig, getInternalTimerService, getKeyedStateBackend, getKeyedStateStore, getMetricGroup, getOperatorConfig, getOperatorID, getOperatorName, getOperatorStateBackend, getOrCreateKeyedState, getPartitionedState, getPartitionedState, getProcessingTimeService, getRuntimeContext, getTimeServiceManager, getUserCodeClassloader, initializeState, isUsingCustomRawKeyedState, processLatencyMarker, processLatencyMarker1, processLatencyMarker2, processWatermark1, processWatermark2, processWatermarkStatus, processWatermarkStatus1, processWatermarkStatus2, reportOrForwardLatencyMarker, setChainingStrategy, setCurrentKey, setKeyContextElement1, setKeyContextElement2, setProcessingTimeService, snapshotStateclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitpublic void setup(org.apache.flink.streaming.runtime.tasks.StreamTask<?,?> containingTask,
org.apache.flink.streaming.api.graph.StreamConfig config,
org.apache.flink.streaming.api.operators.Output<org.apache.flink.streaming.runtime.streamrecord.StreamRecord<Committable>> output)
setup 在接口中 org.apache.flink.streaming.api.operators.SetupableStreamOperator<Committable>setup 在类中 org.apache.flink.streaming.api.operators.AbstractStreamOperator<Committable>public void initializeState(org.apache.flink.runtime.state.StateInitializationContext context)
throws Exception
initializeState 在接口中 org.apache.flink.streaming.api.operators.StreamOperatorStateHandler.CheckpointedStreamOperatorinitializeState 在类中 org.apache.flink.streaming.api.operators.AbstractStreamOperator<Committable>Exceptionpublic void open()
throws Exception
open 在接口中 org.apache.flink.streaming.api.operators.StreamOperator<Committable>open 在类中 org.apache.flink.streaming.api.operators.AbstractStreamOperator<Committable>Exceptionpublic void processWatermark(org.apache.flink.streaming.api.watermark.Watermark mark)
throws Exception
processWatermark 在接口中 org.apache.flink.streaming.api.operators.Input<org.apache.flink.table.data.RowData>processWatermark 在类中 org.apache.flink.streaming.api.operators.AbstractStreamOperator<Committable>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 在类中 PrepareCommitOperatorExceptionpublic void snapshotState(org.apache.flink.runtime.state.StateSnapshotContext context)
throws Exception
snapshotState 在接口中 org.apache.flink.streaming.api.operators.StreamOperatorStateHandler.CheckpointedStreamOperatorsnapshotState 在类中 org.apache.flink.streaming.api.operators.AbstractStreamOperator<Committable>Exceptionpublic void finish()
throws Exception
finish 在接口中 org.apache.flink.streaming.api.operators.StreamOperator<Committable>finish 在类中 org.apache.flink.streaming.api.operators.AbstractStreamOperator<Committable>Exceptionpublic void close()
throws Exception
close 在接口中 org.apache.flink.streaming.api.operators.StreamOperator<Committable>close 在类中 org.apache.flink.streaming.api.operators.AbstractStreamOperator<Committable>Exceptionpublic void notifyCheckpointComplete(long checkpointId)
throws Exception
notifyCheckpointComplete 在接口中 org.apache.flink.api.common.state.CheckpointListenernotifyCheckpointComplete 在类中 org.apache.flink.streaming.api.operators.AbstractStreamOperator<Committable>Exceptionpublic void notifyCheckpointAborted(long checkpointId)
throws Exception
notifyCheckpointAborted 在接口中 org.apache.flink.api.common.state.CheckpointListenernotifyCheckpointAborted 在类中 org.apache.flink.streaming.api.operators.AbstractStreamOperator<Committable>Exceptionprotected List<Committable> prepareCommit(boolean endOfInput, long checkpointId) throws IOException
prepareCommit 在类中 PrepareCommitOperatorIOExceptionCopyright © 2019–2022 The Apache Software Foundation. All rights reserved.