Class 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
    Helper for StreamingFileSink. This helper can be used by RichSinkFunction or StreamOperator.
    • Constructor Detail

      • 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 Detail

      • commitUpToCheckpoint

        public void commitUpToCheckpoint​(long checkpointId)
                                  throws Exception
        Throws:
        Exception
      • snapshotState

        public void snapshotState​(long checkpointId)
                           throws Exception
        Throws:
        Exception
      • onProcessingTime

        public void onProcessingTime​(long timestamp)
                              throws Exception
        Specified by:
        onProcessingTime in interface org.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()