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

java.lang.Object
org.apache.flink.connector.file.sink.FileSink.RowFormatBuilder<IN,T>
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
FileSink.DefaultRowFormatBuilder
Enclosing class:
FileSink<IN>

public static class FileSink.RowFormatBuilder<IN,T extends FileSink.RowFormatBuilder<IN,T>> extends Object
A builder for configuring the sink for row-wise encoding formats.
See Also:
  • Field Details

    • DEFAULT_BUCKET_CHECK_INTERVAL

      protected static final long DEFAULT_BUCKET_CHECK_INTERVAL
      See Also:
  • Constructor Details

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

    • 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)
    • enableCompact

      public T enableCompact(FileCompactStrategy strategy, FileCompactor compactor)
    • disableCompact

      public T disableCompact()
    • build

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

      protected T self()