public class FixedIndexedWriter<T> extends Object implements Serializer
FixedIndexed| Constructor and Description |
|---|
FixedIndexedWriter(SegmentWriteOutMedium segmentWriteOutMedium,
TypeStrategy<T> typeStrategy,
ByteOrder byteOrder,
int width,
boolean isSorted) |
| Modifier and Type | Method and Description |
|---|---|
T |
get(int index) |
Iterator<T> |
getIterator() |
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 |
write(T objectToWrite) |
void |
writeTo(WritableByteChannel channel,
FileSmoosher smoosher)
Writes serialized form of this object to the given channel.
|
public FixedIndexedWriter(SegmentWriteOutMedium segmentWriteOutMedium, TypeStrategy<T> typeStrategy, ByteOrder byteOrder, int width, boolean isSorted)
public void open()
throws IOException
IOExceptionpublic long getSerializedSize()
SerializerSerializer.writeTo(java.nio.channels.WritableByteChannel, org.apache.druid.java.util.common.io.smoosh.FileSmoosher) call.getSerializedSize in interface Serializerpublic void write(@Nullable T objectToWrite) throws IOException
IOExceptionpublic void writeTo(WritableByteChannel channel, FileSmoosher smoosher) throws IOException
SerializerwriteTo in interface SerializerIOException@Nullable public T get(int index) throws IOException
IOExceptionCopyright © 2011–2022 The Apache Software Foundation. All rights reserved.