public class SerializablePairLongStringColumnSerializer extends Object implements GenericColumnSerializer<SerializablePairLongString>
open()+serialize()*(getSerializedSize()|writeTo())*
getSerializedSize() / writeTo() effectively function as a close call, but each may be called multiple times and has no effect on one another.
| Modifier and Type | Field and Description |
|---|---|
static StagedSerde<SerializablePairLongString> |
STAGED_SERDE |
| Constructor and Description |
|---|
SerializablePairLongStringColumnSerializer(SegmentWriteOutMedium segmentWriteOutMedium,
ByteBufferProvider byteBufferProvider) |
| Modifier and Type | Method and Description |
|---|---|
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 |
open() |
void |
serialize(ColumnValueSelector<? extends SerializablePairLongString> selector) |
void |
writeTo(WritableByteChannel channel,
FileSmoosher smoosher)
Writes serialized form of this object to the given channel.
|
public static final StagedSerde<SerializablePairLongString> STAGED_SERDE
public SerializablePairLongStringColumnSerializer(SegmentWriteOutMedium segmentWriteOutMedium, ByteBufferProvider byteBufferProvider)
public void open()
throws IOException
open in interface GenericColumnSerializer<SerializablePairLongString>IOExceptionpublic void serialize(ColumnValueSelector<? extends SerializablePairLongString> selector) throws IOException
serialize in interface GenericColumnSerializer<SerializablePairLongString>IOExceptionpublic long getSerializedSize()
throws IOException
SerializerSerializer.writeTo(java.nio.channels.WritableByteChannel, org.apache.druid.java.util.common.io.smoosh.FileSmoosher) call.getSerializedSize in interface SerializerIOExceptionpublic void writeTo(WritableByteChannel channel, @Nullable FileSmoosher smoosher) throws IOException
SerializerwriteTo in interface SerializerIOExceptionCopyright © 2011–2023 The Apache Software Foundation. All rights reserved.