Class CompactBucketWriter<T>
- java.lang.Object
-
- org.apache.flink.connector.file.table.stream.compact.CompactBucketWriter<T>
-
- All Implemented Interfaces:
CompactWriter<T>
@Internal public class CompactBucketWriter<T> extends Object implements CompactWriter<T>
TheCompactWriterto delegateBucketWriter.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcommit()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)voidwrite(T record)
-
-
-
Method Detail
-
write
public void write(T record) throws IOException
- Specified by:
writein interfaceCompactWriter<T>- Throws:
IOException
-
commit
public void commit() throws IOExceptionDescription copied from interface:CompactWriterCommits the pending file, making it visible.- Specified by:
commitin interfaceCompactWriter<T>- Throws:
IOException
-
factory
public 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)
-
-