public class RunLengthIntegerWriter extends Object implements IntegerWriter
| Constructor and Description |
|---|
RunLengthIntegerWriter(PositionedOutputStream output,
boolean signed) |
| Modifier and Type | Method and Description |
|---|---|
void |
changeIv(Consumer<byte[]> modifier) |
long |
estimateMemory()
Estimate the amount of memory being used.
|
void |
flush()
Flush the buffer
|
void |
getPosition(PositionRecorder recorder)
Get position from the stream.
|
void |
write(long value)
Write the integer value
|
public RunLengthIntegerWriter(PositionedOutputStream output, boolean signed)
public void flush()
throws IOException
IntegerWriterflush in interface IntegerWriterIOExceptionpublic void write(long value)
throws IOException
IntegerWriterwrite in interface IntegerWriterIOExceptionpublic void getPosition(PositionRecorder recorder) throws IOException
IntegerWritergetPosition in interface IntegerWriterIOExceptionpublic long estimateMemory()
IntegerWriterestimateMemory in interface IntegerWriterpublic void changeIv(Consumer<byte[]> modifier)
changeIv in interface IntegerWriterCopyright © 2013–2022 The Apache Software Foundation. All rights reserved.