@Internal public class CompactBucketWriter<T> extends Object implements CompactWriter<T>
CompactWriter
to delegate BucketWriter
.Modifier and Type | Method and Description |
---|---|
void |
commit()
Commits the pending file, making it visible.
|
static <T> CompactWriter.Factory<T> |
factory(SupplierWithException<BucketWriter<T,String>,IOException> factory) |
void |
write(T record) |
public void write(T record) throws IOException
write
in interface CompactWriter<T>
IOException
public void commit() throws IOException
CompactWriter
commit
in interface CompactWriter<T>
IOException
public static <T> CompactWriter.Factory<T> factory(SupplierWithException<BucketWriter<T,String>,IOException> factory)
Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.