public class PageFileWriter extends Object implements HiveFileWriter
| Constructor and Description |
|---|
PageFileWriter(DataSink dataSink,
PagesSerde pagesSerde,
HiveCompressionCodec compression,
io.airlift.units.DataSize pageFileStripeMaxSize,
Callable<Void> rollbackAction) |
| Modifier and Type | Method and Description |
|---|---|
void |
appendRows(Page dataPage) |
Optional<Page> |
commit() |
long |
getFileSizeInBytes() |
long |
getSystemMemoryUsage() |
long |
getValidationCpuNanos() |
long |
getWrittenBytes() |
void |
rollback() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetVerificationTaskpublic PageFileWriter(DataSink dataSink, PagesSerde pagesSerde, HiveCompressionCodec compression, io.airlift.units.DataSize pageFileStripeMaxSize, Callable<Void> rollbackAction)
public long getWrittenBytes()
getWrittenBytes in interface HiveFileWriterpublic long getSystemMemoryUsage()
getSystemMemoryUsage in interface HiveFileWriterpublic void appendRows(Page dataPage)
appendRows in interface HiveFileWriterpublic Optional<Page> commit()
commit in interface HiveFileWriterpublic void rollback()
rollback in interface HiveFileWriterpublic long getValidationCpuNanos()
getValidationCpuNanos in interface HiveFileWriterpublic long getFileSizeInBytes()
getFileSizeInBytes in interface HiveFileWriterCopyright © 2012–2023. All rights reserved.