public class PageWriter extends Object implements Closeable
| Constructor and Description |
|---|
PageWriter(DataSink dataSink,
HiveCompressionCodec compressionCodec,
io.airlift.units.DataSize pageFileStripeMaxSize) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
void |
closeWithoutWrite() |
long |
getRetainedBytes() |
long |
getWrittenBytes()
Number of bytes already flushed to the data sink.
|
void |
write(SerializedPage page) |
public PageWriter(DataSink dataSink, HiveCompressionCodec compressionCodec, io.airlift.units.DataSize pageFileStripeMaxSize)
public long getWrittenBytes()
public void write(SerializedPage page) throws IOException
IOExceptionpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableIOExceptionpublic void closeWithoutWrite()
throws IOException
IOExceptionpublic long getRetainedBytes()
Copyright © 2012–2023. All rights reserved.