Interface BucketFactory<IN,BucketID>
-
- All Superinterfaces:
Serializable
- All Known Implementing Classes:
DefaultBucketFactoryImpl
@Internal public interface BucketFactory<IN,BucketID> extends Serializable
A factory able to createbuckets
for theStreamingFileSink
.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Bucket<IN,BucketID>
getNewBucket(int subtaskIndex, BucketID bucketId, Path bucketPath, long initialPartCounter, BucketWriter<IN,BucketID> bucketWriter, RollingPolicy<IN,BucketID> rollingPolicy, FileLifeCycleListener<BucketID> fileListener, OutputFileConfig outputFileConfig)
Bucket<IN,BucketID>
restoreBucket(int subtaskIndex, long initialPartCounter, BucketWriter<IN,BucketID> bucketWriter, RollingPolicy<IN,BucketID> rollingPolicy, org.apache.flink.streaming.api.functions.sink.filesystem.BucketState<BucketID> bucketState, FileLifeCycleListener<BucketID> fileListener, OutputFileConfig outputFileConfig)
-
-
-
Method Detail
-
getNewBucket
Bucket<IN,BucketID> getNewBucket(int subtaskIndex, BucketID bucketId, Path bucketPath, long initialPartCounter, BucketWriter<IN,BucketID> bucketWriter, RollingPolicy<IN,BucketID> rollingPolicy, @Nullable FileLifeCycleListener<BucketID> fileListener, OutputFileConfig outputFileConfig) throws IOException
- Throws:
IOException
-
restoreBucket
Bucket<IN,BucketID> restoreBucket(int subtaskIndex, long initialPartCounter, BucketWriter<IN,BucketID> bucketWriter, RollingPolicy<IN,BucketID> rollingPolicy, org.apache.flink.streaming.api.functions.sink.filesystem.BucketState<BucketID> bucketState, @Nullable FileLifeCycleListener<BucketID> fileListener, OutputFileConfig outputFileConfig) throws IOException
- Throws:
IOException
-
-