Class FileSink.RowFormatBuilder<IN,​T extends FileSink.RowFormatBuilder<IN,​T>>

    • Constructor Detail

      • RowFormatBuilder

        protected RowFormatBuilder​(org.apache.flink.core.fs.Path basePath,
                                   org.apache.flink.api.common.serialization.Encoder<IN> encoder,
                                   org.apache.flink.streaming.api.functions.sink.filesystem.BucketAssigner<IN,​String> bucketAssigner)
      • RowFormatBuilder

        protected RowFormatBuilder​(org.apache.flink.core.fs.Path basePath,
                                   long bucketCheckInterval,
                                   org.apache.flink.api.common.serialization.Encoder<IN> encoder,
                                   org.apache.flink.streaming.api.functions.sink.filesystem.BucketAssigner<IN,​String> assigner,
                                   org.apache.flink.streaming.api.functions.sink.filesystem.RollingPolicy<IN,​String> policy,
                                   FileWriterBucketFactory<IN> bucketFactory,
                                   org.apache.flink.streaming.api.functions.sink.filesystem.OutputFileConfig outputFileConfig)
    • Method Detail

      • withBucketCheckInterval

        public T withBucketCheckInterval​(long interval)
      • withBucketAssigner

        public T withBucketAssigner​(org.apache.flink.streaming.api.functions.sink.filesystem.BucketAssigner<IN,​String> assigner)
      • withRollingPolicy

        public T withRollingPolicy​(org.apache.flink.streaming.api.functions.sink.filesystem.RollingPolicy<IN,​String> policy)
      • withOutputFileConfig

        public T withOutputFileConfig​(org.apache.flink.streaming.api.functions.sink.filesystem.OutputFileConfig outputFileConfig)
      • disableCompact

        public T disableCompact()
      • build

        public FileSink<IN> build()
        Creates the actual sink.