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
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:
- Serialized Form
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedRowFormatBuilder(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)protectedRowFormatBuilder(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)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description FileSink<IN>build()Creates the actual sink.TdisableCompact()TenableCompact(FileCompactStrategy strategy, FileCompactor compactor)TwithBucketAssigner(org.apache.flink.streaming.api.functions.sink.filesystem.BucketAssigner<IN,String> assigner)TwithBucketCheckInterval(long interval)TwithOutputFileConfig(org.apache.flink.streaming.api.functions.sink.filesystem.OutputFileConfig outputFileConfig)TwithRollingPolicy(org.apache.flink.streaming.api.functions.sink.filesystem.RollingPolicy<IN,String> policy)
-
-
-
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)
-
enableCompact
public T enableCompact(FileCompactStrategy strategy, FileCompactor compactor)
-
disableCompact
public T disableCompact()
-
-