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:
-
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedRowFormatBuilder(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
Modifier and TypeMethodDescriptionbuild()Creates the actual sink.enableCompact(FileCompactStrategy strategy, FileCompactor compactor) protected Tself()withBucketAssigner(org.apache.flink.streaming.api.functions.sink.filesystem.BucketAssigner<IN, String> assigner) withBucketCheckInterval(long interval) withOutputFileConfig(org.apache.flink.streaming.api.functions.sink.filesystem.OutputFileConfig outputFileConfig) withRollingPolicy(org.apache.flink.streaming.api.functions.sink.filesystem.RollingPolicy<IN, String> policy)
-
Field Details
-
DEFAULT_BUCKET_CHECK_INTERVAL
protected static final long DEFAULT_BUCKET_CHECK_INTERVAL- See Also:
-
-
Constructor Details
-
RowFormatBuilder
-
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
-
withBucketAssigner
-
withRollingPolicy
-
withOutputFileConfig
public T withOutputFileConfig(org.apache.flink.streaming.api.functions.sink.filesystem.OutputFileConfig outputFileConfig) -
enableCompact
-
disableCompact
-
build
Creates the actual sink. -
self
-