public class HadoopPathBasedBulkFormatBuilder<IN,BucketID,T extends HadoopPathBasedBulkFormatBuilder<IN,BucketID,T>> extends StreamingFileSink.BucketsBuilder<IN,BucketID,T>
HadoopPathBasedPartFileWriter
.DEFAULT_BUCKET_CHECK_INTERVAL
Constructor and Description |
---|
HadoopPathBasedBulkFormatBuilder(org.apache.hadoop.fs.Path basePath,
HadoopPathBasedBulkWriter.Factory<IN> writerFactory,
Configuration configuration,
BucketAssigner<IN,BucketID> assigner) |
HadoopPathBasedBulkFormatBuilder(org.apache.hadoop.fs.Path basePath,
HadoopPathBasedBulkWriter.Factory<IN> writerFactory,
HadoopFileCommitterFactory fileCommitterFactory,
Configuration configuration,
BucketAssigner<IN,BucketID> assigner,
CheckpointRollingPolicy<IN,BucketID> policy,
BucketFactory<IN,BucketID> bucketFactory,
OutputFileConfig outputFileConfig) |
Modifier and Type | Method and Description |
---|---|
Buckets<IN,BucketID> |
createBuckets(int subtaskIndex) |
BucketWriter<IN,BucketID> |
createBucketWriter() |
T |
withBucketAssigner(BucketAssigner<IN,BucketID> assigner) |
T |
withBucketFactory(BucketFactory<IN,BucketID> factory) |
T |
withConfiguration(Configuration configuration) |
T |
withOutputFileConfig(OutputFileConfig outputFileConfig) |
T |
withRollingPolicy(CheckpointRollingPolicy<IN,BucketID> rollingPolicy) |
self
public HadoopPathBasedBulkFormatBuilder(org.apache.hadoop.fs.Path basePath, HadoopPathBasedBulkWriter.Factory<IN> writerFactory, Configuration configuration, BucketAssigner<IN,BucketID> assigner)
public HadoopPathBasedBulkFormatBuilder(org.apache.hadoop.fs.Path basePath, HadoopPathBasedBulkWriter.Factory<IN> writerFactory, HadoopFileCommitterFactory fileCommitterFactory, Configuration configuration, BucketAssigner<IN,BucketID> assigner, CheckpointRollingPolicy<IN,BucketID> policy, BucketFactory<IN,BucketID> bucketFactory, OutputFileConfig outputFileConfig)
public T withBucketAssigner(BucketAssigner<IN,BucketID> assigner)
public T withRollingPolicy(CheckpointRollingPolicy<IN,BucketID> rollingPolicy)
public T withBucketFactory(BucketFactory<IN,BucketID> factory)
public T withOutputFileConfig(OutputFileConfig outputFileConfig)
public T withConfiguration(Configuration configuration)
public BucketWriter<IN,BucketID> createBucketWriter()
createBucketWriter
in class StreamingFileSink.BucketsBuilder<IN,BucketID,T extends HadoopPathBasedBulkFormatBuilder<IN,BucketID,T>>
public Buckets<IN,BucketID> createBuckets(int subtaskIndex) throws IOException
createBuckets
in class StreamingFileSink.BucketsBuilder<IN,BucketID,T extends HadoopPathBasedBulkFormatBuilder<IN,BucketID,T>>
IOException
Copyright © 2014–2023 The Apache Software Foundation. All rights reserved.