@Internal public class CompactFileWriter<T> extends AbstractStreamingWriter<T,CompactMessages.CoordinatorInput>
CompactMessages.InputFile and CompactMessages.EndCheckpoint to downstream.buckets, currentWatermark| Constructor and Description |
|---|
CompactFileWriter(long bucketCheckInterval,
org.apache.flink.streaming.api.functions.sink.filesystem.StreamingFileSink.BucketsBuilder<T,String,? extends org.apache.flink.streaming.api.functions.sink.filesystem.StreamingFileSink.BucketsBuilder<T,String,?>> bucketsBuilder) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
commitUpToCheckpoint(long checkpointId)
Commit up to this checkpoint id.
|
protected void |
onPartFileOpened(String partition,
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.
|
close, endInput, initializeState, notifyCheckpointComplete, processElement, processWatermark, snapshotStatefinish, getChainingStrategy, getContainingTask, getCurrentKey, getExecutionConfig, getInternalTimerService, getKeyedStateBackend, getKeyedStateStore, getMetricGroup, getOperatorConfig, getOperatorID, getOperatorName, getOperatorStateBackend, getOrCreateKeyedState, getPartitionedState, getPartitionedState, getProcessingTimeService, getRuntimeContext, getStateKeySelector1, getStateKeySelector2, getTimeServiceManager, getUserCodeClassloader, hasKeyContext1, hasKeyContext2, initializeState, isUsingCustomRawKeyedState, notifyCheckpointAborted, open, prepareSnapshotPreBarrier, processLatencyMarker, processLatencyMarker1, processLatencyMarker2, processRecordAttributes, processRecordAttributes1, processRecordAttributes2, processWatermark1, processWatermark2, processWatermarkStatus, processWatermarkStatus1, processWatermarkStatus2, reportOrForwardLatencyMarker, setChainingStrategy, setCurrentKey, setKeyContextElement1, setKeyContextElement2, setMailboxExecutor, setProcessingTimeService, setup, snapshotState, useSplittableTimersclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitsetKeyContextElementfinish, getMetricGroup, getOperatorAttributes, getOperatorID, initializeState, open, prepareSnapshotPreBarrier, setKeyContextElement1, setKeyContextElement2, snapshotStatenotifyCheckpointAbortedgetCurrentKey, setCurrentKeyprotected void partitionCreated(String partition)
AbstractStreamingWriterpartitionCreated in class AbstractStreamingWriter<T,CompactMessages.CoordinatorInput>protected void partitionInactive(String partition)
AbstractStreamingWriterpartitionInactive in class AbstractStreamingWriter<T,CompactMessages.CoordinatorInput>protected void onPartFileOpened(String partition, 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<T,CompactMessages.CoordinatorInput>protected void commitUpToCheckpoint(long checkpointId)
throws Exception
AbstractStreamingWritercommitUpToCheckpoint in class AbstractStreamingWriter<T,CompactMessages.CoordinatorInput>ExceptionCopyright © 2014–2025 The Apache Software Foundation. All rights reserved.