public class StreamingFileWriter extends org.apache.flink.streaming.api.operators.AbstractStreamOperator<StreamingFileCommitter.CommitMessage> implements org.apache.flink.streaming.api.operators.OneInputStreamOperator<org.apache.flink.table.data.RowData,StreamingFileCommitter.CommitMessage>, org.apache.flink.streaming.api.operators.BoundedOneInput
StreamingFileSink.
It sends partition commit message to downstream for committing.
| 构造器和说明 |
|---|
StreamingFileWriter(long bucketCheckInterval,
org.apache.flink.streaming.api.functions.sink.filesystem.StreamingFileSink.BucketsBuilder<org.apache.flink.table.data.RowData,String,? extends org.apache.flink.streaming.api.functions.sink.filesystem.StreamingFileSink.BucketsBuilder<org.apache.flink.table.data.RowData,String,?>> bucketsBuilder) |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
dispose() |
void |
endInput() |
void |
initializeState(org.apache.flink.runtime.state.StateInitializationContext context) |
void |
notifyCheckpointComplete(long checkpointId)
Commit up to this checkpoint id, also send inactive partitions to downstream for committing.
|
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 |
snapshotState(org.apache.flink.runtime.state.StateSnapshotContext context) |
close, getChainingStrategy, getContainingTask, getCurrentKey, getExecutionConfig, getInternalTimerService, getKeyedStateBackend, getKeyedStateStore, getMetricGroup, getOperatorConfig, getOperatorID, getOperatorName, getOperatorStateBackend, getOrCreateKeyedState, getPartitionedState, getPartitionedState, getProcessingTimeService, getRuntimeContext, getTimeServiceManager, getUserCodeClassloader, initializeState, notifyCheckpointAborted, numEventTimeTimers, numProcessingTimeTimers, open, prepareSnapshotPreBarrier, processLatencyMarker, processLatencyMarker1, processLatencyMarker2, processWatermark1, processWatermark2, reportOrForwardLatencyMarker, setChainingStrategy, setCurrentKey, setKeyContextElement1, setKeyContextElement2, setProcessingTimeService, setup, snapshotStateclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitpublic StreamingFileWriter(long bucketCheckInterval,
org.apache.flink.streaming.api.functions.sink.filesystem.StreamingFileSink.BucketsBuilder<org.apache.flink.table.data.RowData,String,? extends org.apache.flink.streaming.api.functions.sink.filesystem.StreamingFileSink.BucketsBuilder<org.apache.flink.table.data.RowData,String,?>> bucketsBuilder)
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<StreamingFileCommitter.CommitMessage>Exceptionpublic 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<StreamingFileCommitter.CommitMessage>Exceptionpublic void processWatermark(org.apache.flink.streaming.api.watermark.Watermark mark)
throws Exception
processWatermark 在接口中 org.apache.flink.streaming.api.operators.OneInputStreamOperator<org.apache.flink.table.data.RowData,StreamingFileCommitter.CommitMessage>processWatermark 在类中 org.apache.flink.streaming.api.operators.AbstractStreamOperator<StreamingFileCommitter.CommitMessage>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.OneInputStreamOperator<org.apache.flink.table.data.RowData,StreamingFileCommitter.CommitMessage>Exceptionpublic void notifyCheckpointComplete(long checkpointId)
throws Exception
notifyCheckpointComplete 在接口中 org.apache.flink.runtime.state.CheckpointListenernotifyCheckpointComplete 在类中 org.apache.flink.streaming.api.operators.AbstractStreamOperator<StreamingFileCommitter.CommitMessage>Exceptionpublic void endInput()
throws Exception
endInput 在接口中 org.apache.flink.streaming.api.operators.BoundedOneInputExceptionpublic void dispose()
throws Exception
dispose 在接口中 org.apache.flink.streaming.api.operators.StreamOperator<StreamingFileCommitter.CommitMessage>dispose 在接口中 org.apache.flink.util.Disposabledispose 在类中 org.apache.flink.streaming.api.operators.AbstractStreamOperator<StreamingFileCommitter.CommitMessage>ExceptionCopyright © 2014–2020 The Apache Software Foundation. All rights reserved.