@PublicEvolving public static class StreamingFileSink.RowFormatBuilder<IN,BucketID,T extends StreamingFileSink.RowFormatBuilder<IN,BucketID,T>> extends StreamingFileSink.BucketsBuilder<IN,BucketID,T>
DEFAULT_BUCKET_CHECK_INTERVAL
Modifier | Constructor and Description |
---|---|
protected |
RowFormatBuilder(Path basePath,
Encoder<IN> encoder,
BucketAssigner<IN,BucketID> bucketAssigner) |
protected |
RowFormatBuilder(Path basePath,
Encoder<IN> encoder,
BucketAssigner<IN,BucketID> assigner,
RollingPolicy<IN,BucketID> policy,
long bucketCheckInterval,
BucketFactory<IN,BucketID> bucketFactory,
OutputFileConfig outputFileConfig) |
Modifier and Type | Method and Description |
---|---|
StreamingFileSink<IN> |
build()
Creates the actual sink.
|
Buckets<IN,BucketID> |
createBuckets(int subtaskIndex) |
BucketWriter<IN,BucketID> |
createBucketWriter() |
long |
getBucketCheckInterval() |
T |
withBucketAssigner(BucketAssigner<IN,BucketID> assigner) |
T |
withBucketCheckInterval(long interval) |
<ID> StreamingFileSink.RowFormatBuilder<IN,ID,? extends StreamingFileSink.RowFormatBuilder<IN,ID,?>> |
withNewBucketAssignerAndPolicy(BucketAssigner<IN,ID> assigner,
RollingPolicy<IN,ID> policy) |
T |
withOutputFileConfig(OutputFileConfig outputFileConfig) |
T |
withRollingPolicy(RollingPolicy<IN,BucketID> policy) |
self
protected RowFormatBuilder(Path basePath, Encoder<IN> encoder, BucketAssigner<IN,BucketID> bucketAssigner)
protected RowFormatBuilder(Path basePath, Encoder<IN> encoder, BucketAssigner<IN,BucketID> assigner, RollingPolicy<IN,BucketID> policy, long bucketCheckInterval, BucketFactory<IN,BucketID> bucketFactory, OutputFileConfig outputFileConfig)
public long getBucketCheckInterval()
public T withBucketCheckInterval(long interval)
public T withBucketAssigner(BucketAssigner<IN,BucketID> assigner)
public T withRollingPolicy(RollingPolicy<IN,BucketID> policy)
public T withOutputFileConfig(OutputFileConfig outputFileConfig)
public <ID> StreamingFileSink.RowFormatBuilder<IN,ID,? extends StreamingFileSink.RowFormatBuilder<IN,ID,?>> withNewBucketAssignerAndPolicy(BucketAssigner<IN,ID> assigner, RollingPolicy<IN,ID> policy)
public StreamingFileSink<IN> build()
@Internal public BucketWriter<IN,BucketID> createBucketWriter() throws IOException
createBucketWriter
in class StreamingFileSink.BucketsBuilder<IN,BucketID,T extends StreamingFileSink.RowFormatBuilder<IN,BucketID,T>>
IOException
@Internal public Buckets<IN,BucketID> createBuckets(int subtaskIndex) throws IOException
createBuckets
in class StreamingFileSink.BucketsBuilder<IN,BucketID,T extends StreamingFileSink.RowFormatBuilder<IN,BucketID,T>>
IOException
Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.