@PublicEvolving public static class FileSink.BulkFormatBuilder<IN,T extends FileSink.BulkFormatBuilder<IN,T>> extends Object
Modifier | Constructor and Description |
---|---|
protected |
BulkFormatBuilder(Path basePath,
BulkWriter.Factory<IN> writerFactory,
BucketAssigner<IN,String> assigner) |
protected |
BulkFormatBuilder(Path basePath,
long bucketCheckInterval,
BulkWriter.Factory<IN> writerFactory,
BucketAssigner<IN,String> assigner,
CheckpointRollingPolicy<IN,String> policy,
FileWriterBucketFactory<IN> bucketFactory,
OutputFileConfig outputFileConfig) |
Modifier and Type | Method and Description |
---|---|
FileSink<IN> |
build()
Creates the actual sink.
|
T |
withBucketAssigner(BucketAssigner<IN,String> assigner) |
T |
withBucketCheckInterval(long interval) |
FileSink.BulkFormatBuilder<IN,? extends FileSink.BulkFormatBuilder<IN,?>> |
withNewBucketAssigner(BucketAssigner<IN,String> assigner) |
T |
withOutputFileConfig(OutputFileConfig outputFileConfig) |
T |
withRollingPolicy(CheckpointRollingPolicy<IN,String> rollingPolicy) |
protected BulkFormatBuilder(Path basePath, BulkWriter.Factory<IN> writerFactory, BucketAssigner<IN,String> assigner)
protected BulkFormatBuilder(Path basePath, long bucketCheckInterval, BulkWriter.Factory<IN> writerFactory, BucketAssigner<IN,String> assigner, CheckpointRollingPolicy<IN,String> policy, FileWriterBucketFactory<IN> bucketFactory, OutputFileConfig outputFileConfig)
public T withBucketCheckInterval(long interval)
public T withBucketAssigner(BucketAssigner<IN,String> assigner)
public T withRollingPolicy(CheckpointRollingPolicy<IN,String> rollingPolicy)
public T withOutputFileConfig(OutputFileConfig outputFileConfig)
public FileSink.BulkFormatBuilder<IN,? extends FileSink.BulkFormatBuilder<IN,?>> withNewBucketAssigner(BucketAssigner<IN,String> assigner)
Copyright © 2014–2023 The Apache Software Foundation. All rights reserved.