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 itConstructor 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
IOException
public long getSerializedSize()
Serializer
Serializer.writeTo(java.nio.channels.WritableByteChannel, org.apache.druid.java.util.common.io.smoosh.FileSmoosher)
call.getSerializedSize
in interface Serializer
public void write(int objectToWrite) throws IOException
IOException
public void writeTo(WritableByteChannel channel, FileSmoosher smoosher) throws IOException
Serializer
writeTo
in interface Serializer
IOException
public it.unimi.dsi.fastutil.ints.IntIterator getIterator()
Copyright © 2011–2023 The Apache Software Foundation. All rights reserved.