public class CellIndexWriter extends Object implements Serializer, Closeable
| Constructor and Description |
|---|
CellIndexWriter(BlockCompressedPayloadWriter payloadWriter) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
long |
getSerializedSize()
Returns the number of bytes, that this Serializer will write to the output _channel_ (not smoosher) on a
Serializer.writeTo(java.nio.channels.WritableByteChannel, org.apache.druid.java.util.common.io.smoosh.FileSmoosher) call. |
void |
persistAndIncrement(int increment) |
void |
writeTo(WritableByteChannel channel,
FileSmoosher smoosher)
Writes serialized form of this object to the given channel.
|
public CellIndexWriter(BlockCompressedPayloadWriter payloadWriter)
public void persistAndIncrement(int increment)
throws IOException
IOExceptionpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableIOExceptionpublic void writeTo(WritableByteChannel channel, @Nullable FileSmoosher smoosher) throws IOException
SerializerwriteTo in interface SerializerIOExceptionpublic long getSerializedSize()
SerializerSerializer.writeTo(java.nio.channels.WritableByteChannel, org.apache.druid.java.util.common.io.smoosh.FileSmoosher) call.getSerializedSize in interface SerializerCopyright © 2011–2022 The Apache Software Foundation. All rights reserved.