@Internal public class CompactBucketWriter<T> extends Object implements CompactWriter<T>
CompactWriter to delegate BucketWriter.| 限定符和类型 | 方法和说明 |
|---|---|
void |
commit()
Commits the pending file, making it visible.
|
static <T> CompactWriter.Factory<T> |
factory(org.apache.flink.util.function.SupplierWithException<org.apache.flink.streaming.api.functions.sink.filesystem.BucketWriter<T,String>,IOException> factory) |
void |
write(T record) |
public void write(T record) throws IOException
write 在接口中 CompactWriter<T>IOExceptionpublic void commit()
throws IOException
CompactWritercommit 在接口中 CompactWriter<T>IOExceptionpublic static <T> CompactWriter.Factory<T> factory(org.apache.flink.util.function.SupplierWithException<org.apache.flink.streaming.api.functions.sink.filesystem.BucketWriter<T,String>,IOException> factory)
Copyright © 2014–2022 The Apache Software Foundation. All rights reserved.