Class DefaultFileWriterBucketFactory<IN>

java.lang.Object
org.apache.flink.connector.file.sink.writer.DefaultFileWriterBucketFactory<IN>
All Implemented Interfaces:
Serializable, FileWriterBucketFactory<IN>

@Internal public class DefaultFileWriterBucketFactory<IN> extends Object implements FileWriterBucketFactory<IN>
A factory returning writer.
See Also:
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    org.apache.flink.connector.file.sink.writer.FileWriterBucket<IN>
    getNewBucket(String bucketId, org.apache.flink.core.fs.Path bucketPath, org.apache.flink.streaming.api.functions.sink.filesystem.BucketWriter<IN,String> bucketWriter, org.apache.flink.streaming.api.functions.sink.filesystem.RollingPolicy<IN,String> rollingPolicy, org.apache.flink.streaming.api.functions.sink.filesystem.OutputFileConfig outputFileConfig)
     
    org.apache.flink.connector.file.sink.writer.FileWriterBucket<IN>
    restoreBucket(org.apache.flink.streaming.api.functions.sink.filesystem.BucketWriter<IN,String> bucketWriter, org.apache.flink.streaming.api.functions.sink.filesystem.RollingPolicy<IN,String> rollingPolicy, FileWriterBucketState bucketState, org.apache.flink.streaming.api.functions.sink.filesystem.OutputFileConfig outputFileConfig)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • DefaultFileWriterBucketFactory

      public DefaultFileWriterBucketFactory()
  • Method Details

    • getNewBucket

      public org.apache.flink.connector.file.sink.writer.FileWriterBucket<IN> getNewBucket(String bucketId, org.apache.flink.core.fs.Path bucketPath, org.apache.flink.streaming.api.functions.sink.filesystem.BucketWriter<IN,String> bucketWriter, org.apache.flink.streaming.api.functions.sink.filesystem.RollingPolicy<IN,String> rollingPolicy, org.apache.flink.streaming.api.functions.sink.filesystem.OutputFileConfig outputFileConfig) throws IOException
      Specified by:
      getNewBucket in interface FileWriterBucketFactory<IN>
      Throws:
      IOException
    • restoreBucket

      public org.apache.flink.connector.file.sink.writer.FileWriterBucket<IN> restoreBucket(org.apache.flink.streaming.api.functions.sink.filesystem.BucketWriter<IN,String> bucketWriter, org.apache.flink.streaming.api.functions.sink.filesystem.RollingPolicy<IN,String> rollingPolicy, FileWriterBucketState bucketState, org.apache.flink.streaming.api.functions.sink.filesystem.OutputFileConfig outputFileConfig) throws IOException
      Specified by:
      restoreBucket in interface FileWriterBucketFactory<IN>
      Throws:
      IOException