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() |
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
IOException
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
IOException
public long getRetainedBytes()
Copyright © 2012–2020. All rights reserved.