@Internal public class StreamingFileWriter<IN> extends AbstractStreamingWriter<IN,PartitionCommitInfo>
PartitionCommitInfo to downstream.buckets, currentWatermark| 构造器和说明 |
|---|
StreamingFileWriter(long bucketCheckInterval,
org.apache.flink.streaming.api.functions.sink.filesystem.StreamingFileSink.BucketsBuilder<IN,String,? extends org.apache.flink.streaming.api.functions.sink.filesystem.StreamingFileSink.BucketsBuilder<IN,String,?>> bucketsBuilder,
List<String> partitionKeys,
org.apache.flink.configuration.Configuration conf) |
| 限定符和类型 | 方法和说明 |
|---|---|
protected void |
commitUpToCheckpoint(long checkpointId)
Commit up to this checkpoint id.
|
void |
initializeState(org.apache.flink.runtime.state.StateInitializationContext context) |
protected void |
onPartFileOpened(String s,
org.apache.flink.core.fs.Path newPath)
Notifies a new file has been opened.
|
protected void |
partitionCreated(String partition)
Notifies a partition created.
|
protected void |
partitionInactive(String partition)
Notifies a partition become inactive.
|
void |
snapshotState(org.apache.flink.runtime.state.StateSnapshotContext context) |
close, endInput, notifyCheckpointComplete, processElement, processWatermarkfinish, getChainingStrategy, getContainingTask, getCurrentKey, getExecutionConfig, getInternalTimerService, getKeyedStateBackend, getKeyedStateStore, getMetricGroup, getOperatorConfig, getOperatorID, getOperatorName, getOperatorStateBackend, getOrCreateKeyedState, getPartitionedState, getPartitionedState, getProcessingTimeService, getRuntimeContext, getTimeServiceManager, getUserCodeClassloader, initializeState, isUsingCustomRawKeyedState, notifyCheckpointAborted, open, prepareSnapshotPreBarrier, processLatencyMarker, processLatencyMarker1, processLatencyMarker2, processWatermark1, processWatermark2, processWatermarkStatus, processWatermarkStatus1, processWatermarkStatus2, 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<IN,String,? extends org.apache.flink.streaming.api.functions.sink.filesystem.StreamingFileSink.BucketsBuilder<IN,String,?>> bucketsBuilder,
List<String> partitionKeys,
org.apache.flink.configuration.Configuration conf)
public void initializeState(org.apache.flink.runtime.state.StateInitializationContext context)
throws Exception
initializeState 在接口中 org.apache.flink.streaming.api.operators.StreamOperatorStateHandler.CheckpointedStreamOperatorinitializeState 在类中 AbstractStreamingWriter<IN,PartitionCommitInfo>Exceptionprotected void partitionCreated(String partition)
AbstractStreamingWriterprotected void partitionInactive(String partition)
AbstractStreamingWriterprotected void onPartFileOpened(String s, org.apache.flink.core.fs.Path newPath)
AbstractStreamingWriterNote that this does not mean that the file has been created in the file system. It is only created logically and the actual file will be generated after it is committed.
public void snapshotState(org.apache.flink.runtime.state.StateSnapshotContext context)
throws Exception
snapshotState 在接口中 org.apache.flink.streaming.api.operators.StreamOperatorStateHandler.CheckpointedStreamOperatorsnapshotState 在类中 AbstractStreamingWriter<IN,PartitionCommitInfo>Exceptionprotected void commitUpToCheckpoint(long checkpointId)
throws Exception
AbstractStreamingWriterCopyright © 2014–2022 The Apache Software Foundation. All rights reserved.