public class BlockCompressedPayloadWriter extends Object implements Serializer, Closeable
| Modifier and Type | Class and Description |
|---|---|
static class |
BlockCompressedPayloadWriter.Builder |
| 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 |
write(byte[] payload) |
void |
write(ByteBuffer payload) |
void |
writeTo(WritableByteChannel channel,
FileSmoosher smoosher)
Writes serialized form of this object to the given channel.
|
public void write(byte[] payload)
throws IOException
IOExceptionpublic void write(ByteBuffer payload) 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.