public class LargeColumnSupportedComplexColumnSerializer<T> extends Object implements GenericColumnSerializer<T>
| Modifier and Type | Method and Description |
|---|---|
static <T> LargeColumnSupportedComplexColumnSerializer<T> |
create(SegmentWriteOutMedium segmentWriteOutMedium,
String filenameBase,
ObjectStrategy strategy) |
static <T> LargeColumnSupportedComplexColumnSerializer<T> |
createWithColumnSize(SegmentWriteOutMedium segmentWriteOutMedium,
String filenameBase,
ObjectStrategy strategy,
int columnSize) |
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 T> selector) |
void |
writeTo(WritableByteChannel channel,
FileSmoosher smoosher)
Writes serialized form of this object to the given channel.
|
public static <T> LargeColumnSupportedComplexColumnSerializer<T> create(SegmentWriteOutMedium segmentWriteOutMedium, String filenameBase, ObjectStrategy strategy)
public static <T> LargeColumnSupportedComplexColumnSerializer<T> createWithColumnSize(SegmentWriteOutMedium segmentWriteOutMedium, String filenameBase, ObjectStrategy strategy, int columnSize)
public void open()
throws IOException
open in interface GenericColumnSerializer<T>IOExceptionpublic void serialize(ColumnValueSelector<? extends T> selector) throws IOException
serialize in interface GenericColumnSerializer<T>IOExceptionpublic long getSerializedSize()
SerializerSerializer.writeTo(java.nio.channels.WritableByteChannel, org.apache.druid.java.util.common.io.smoosh.FileSmoosher) call.getSerializedSize in interface Serializerpublic void writeTo(WritableByteChannel channel, FileSmoosher smoosher) throws IOException
SerializerwriteTo in interface SerializerIOExceptionCopyright © 2011–2023 The Apache Software Foundation. All rights reserved.