public static class FileSink.RowFormatBuilder<IN,T extends FileSink.RowFormatBuilder<IN,T>> extends Object
| 限定符 | 构造器和说明 |
|---|---|
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) |
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) |
| 限定符和类型 | 方法和说明 |
|---|---|
FileSink<IN> |
build()
Creates the actual sink.
|
T |
disableCompact() |
T |
enableCompact(FileCompactStrategy strategy,
FileCompactor compactor) |
T |
withBucketAssigner(org.apache.flink.streaming.api.functions.sink.filesystem.BucketAssigner<IN,String> assigner) |
T |
withBucketCheckInterval(long interval) |
T |
withOutputFileConfig(org.apache.flink.streaming.api.functions.sink.filesystem.OutputFileConfig outputFileConfig) |
T |
withRollingPolicy(org.apache.flink.streaming.api.functions.sink.filesystem.RollingPolicy<IN,String> policy) |
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)
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)
public T withBucketCheckInterval(long interval)
public T withBucketAssigner(org.apache.flink.streaming.api.functions.sink.filesystem.BucketAssigner<IN,String> assigner)
public T withRollingPolicy(org.apache.flink.streaming.api.functions.sink.filesystem.RollingPolicy<IN,String> policy)
public T withOutputFileConfig(org.apache.flink.streaming.api.functions.sink.filesystem.OutputFileConfig outputFileConfig)
public T enableCompact(FileCompactStrategy strategy, FileCompactor compactor)
public T disableCompact()
Copyright © 2014–2022 The Apache Software Foundation. All rights reserved.