Class StreamingFileSinkHelper<IN>
java.lang.Object
org.apache.flink.streaming.api.functions.sink.filesystem.StreamingFileSinkHelper<IN>
- All Implemented Interfaces:
org.apache.flink.api.common.operators.ProcessingTimeService.ProcessingTimeCallback
@Internal
public class StreamingFileSinkHelper<IN>
extends Object
implements org.apache.flink.api.common.operators.ProcessingTimeService.ProcessingTimeCallback
-
Constructor Summary
ConstructorsConstructorDescriptionStreamingFileSinkHelper(Buckets<IN, ?> buckets, boolean isRestored, org.apache.flink.api.common.state.OperatorStateStore stateStore, org.apache.flink.streaming.runtime.tasks.ProcessingTimeService procTimeService, long bucketCheckInterval) -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()voidcommitUpToCheckpoint(long checkpointId) voidvoidonProcessingTime(long timestamp) voidsnapshotState(long checkpointId)
-
Constructor Details
-
StreamingFileSinkHelper
public StreamingFileSinkHelper(Buckets<IN, ?> buckets, boolean isRestored, org.apache.flink.api.common.state.OperatorStateStore stateStore, org.apache.flink.streaming.runtime.tasks.ProcessingTimeService procTimeService, long bucketCheckInterval) throws Exception- Throws:
Exception
-
-
Method Details
-
commitUpToCheckpoint
- Throws:
Exception
-
snapshotState
- Throws:
Exception
-
onProcessingTime
- Specified by:
onProcessingTimein interfaceorg.apache.flink.api.common.operators.ProcessingTimeService.ProcessingTimeCallback- Throws:
Exception
-
onElement
public void onElement(IN value, long currentProcessingTime, @Nullable Long elementTimestamp, long currentWatermark) throws Exception - Throws:
Exception
-
close
public void close()
-