public final class FixedIndexedIntWriter extends Object implements Serializer
FixedIndexedWriter for writing ints, with no support for null values, and no
verification that data is actually sorted, it just trusts you and takes your word for it| Constructor and Description |
|---|
FixedIndexedIntWriter(SegmentWriteOutMedium segmentWriteOutMedium,
boolean sorted) |
| Modifier and Type | Method and Description |
|---|---|
it.unimi.dsi.fastutil.ints.IntIterator |
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(int objectToWrite) |
void |
writeTo(WritableByteChannel channel,
FileSmoosher smoosher)
Writes serialized form of this object to the given channel.
|
public FixedIndexedIntWriter(SegmentWriteOutMedium segmentWriteOutMedium, boolean sorted)
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(int objectToWrite)
throws IOException
IOExceptionpublic void writeTo(WritableByteChannel channel, FileSmoosher smoosher) throws IOException
SerializerwriteTo in interface SerializerIOExceptionpublic it.unimi.dsi.fastutil.ints.IntIterator getIterator()
Copyright © 2011–2022 The Apache Software Foundation. All rights reserved.