public class StreamingFileWriter<IN> extends AbstractStreamingWriter<IN,PartitionCommitInfo>
PartitionCommitInfo to downstream.| Constructor and Description |
|---|
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) |
| Modifier and Type | Method and Description |
|---|---|
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 |
partitionInactive(String partition)
Notifies a partition become inactive.
|
dispose, endInput, notifyCheckpointComplete, processElement, processWatermark, snapshotStateclose, 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, reportOrForwardLatencyMarker, setChainingStrategy, setCurrentKey, setKeyContextElement1, setKeyContextElement2, setProcessingTimeService, setup, snapshotStateclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitsetKeyContextElementclose, getMetricGroup, getOperatorID, initializeState, open, prepareSnapshotPreBarrier, setKeyContextElement1, setKeyContextElement2, snapshotStatenotifyCheckpointAbortedpublic 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)
public void initializeState(org.apache.flink.runtime.state.StateInitializationContext context)
throws Exception
initializeState in interface org.apache.flink.streaming.api.operators.StreamOperatorStateHandler.CheckpointedStreamOperatorinitializeState in class AbstractStreamingWriter<IN,PartitionCommitInfo>Exceptionprotected void partitionInactive(String partition)
AbstractStreamingWriterpartitionInactive in class AbstractStreamingWriter<IN,PartitionCommitInfo>protected 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.
onPartFileOpened in class AbstractStreamingWriter<IN,PartitionCommitInfo>protected void commitUpToCheckpoint(long checkpointId)
throws Exception
AbstractStreamingWritercommitUpToCheckpoint in class AbstractStreamingWriter<IN,PartitionCommitInfo>ExceptionCopyright © 2014–2020 The Apache Software Foundation. All rights reserved.