| 程序包 | 说明 |
|---|---|
| org.apache.flink.streaming.api.functions.sink.filesystem | |
| org.apache.flink.streaming.api.functions.sink.filesystem.rollingpolicies |
| 限定符和类型 | 方法和说明 |
|---|---|
Bucket<IN,BucketID> |
BucketFactory.getNewBucket(int subtaskIndex,
BucketID bucketId,
org.apache.flink.core.fs.Path bucketPath,
long initialPartCounter,
BucketWriter<IN,BucketID> bucketWriter,
RollingPolicy<IN,BucketID> rollingPolicy,
OutputFileConfig outputFileConfig) |
Bucket<IN,BucketID> |
DefaultBucketFactoryImpl.getNewBucket(int subtaskIndex,
BucketID bucketId,
org.apache.flink.core.fs.Path bucketPath,
long initialPartCounter,
BucketWriter<IN,BucketID> bucketWriter,
RollingPolicy<IN,BucketID> rollingPolicy,
OutputFileConfig outputFileConfig) |
Bucket<IN,BucketID> |
BucketFactory.restoreBucket(int subtaskIndex,
long initialPartCounter,
BucketWriter<IN,BucketID> bucketWriter,
RollingPolicy<IN,BucketID> rollingPolicy,
org.apache.flink.streaming.api.functions.sink.filesystem.BucketState<BucketID> bucketState,
OutputFileConfig outputFileConfig) |
Bucket<IN,BucketID> |
DefaultBucketFactoryImpl.restoreBucket(int subtaskIndex,
long initialPartCounter,
BucketWriter<IN,BucketID> bucketWriter,
RollingPolicy<IN,BucketID> rollingPolicy,
org.apache.flink.streaming.api.functions.sink.filesystem.BucketState<BucketID> bucketState,
OutputFileConfig outputFileConfig) |
<ID> StreamingFileSink.RowFormatBuilder<IN,ID,? extends StreamingFileSink.RowFormatBuilder<IN,ID,?>> |
StreamingFileSink.RowFormatBuilder.withNewBucketAssignerAndPolicy(BucketAssigner<IN,ID> assigner,
RollingPolicy<IN,ID> policy) |
T |
StreamingFileSink.RowFormatBuilder.withRollingPolicy(RollingPolicy<IN,BucketID> policy) |
| 构造器和说明 |
|---|
Buckets(org.apache.flink.core.fs.Path basePath,
BucketAssigner<IN,BucketID> bucketAssigner,
BucketFactory<IN,BucketID> bucketFactory,
BucketWriter<IN,BucketID> bucketWriter,
RollingPolicy<IN,BucketID> rollingPolicy,
int subtaskIndex,
OutputFileConfig outputFileConfig)
A constructor creating a new empty bucket manager.
|
RowFormatBuilder(org.apache.flink.core.fs.Path basePath,
org.apache.flink.api.common.serialization.Encoder<IN> encoder,
BucketAssigner<IN,BucketID> assigner,
RollingPolicy<IN,BucketID> policy,
long bucketCheckInterval,
BucketFactory<IN,BucketID> bucketFactory,
OutputFileConfig outputFileConfig) |
| 限定符和类型 | 类和说明 |
|---|---|
class |
CheckpointRollingPolicy<IN,BucketID>
An abstract
RollingPolicy which rolls on every checkpoint. |
class |
DefaultRollingPolicy<IN,BucketID>
The default implementation of the
RollingPolicy. |
class |
OnCheckpointRollingPolicy<IN,BucketID>
A
RollingPolicy which rolls (ONLY) on every checkpoint. |
Copyright © 2014–2021 The Apache Software Foundation. All rights reserved.