public class IntRleEncoder extends RleEncoder<Integer>
bitPackedGroupCount, bitWidth, bufferedValues, byteCache, bytesBuffer, config, isBitPackRun, isBitWidthSaved, numBufferedValues, preValue, repeatCount, valuesMAX_POINT_NUMBER, MAX_STRING_LENGTH| Constructor and Description |
|---|
IntRleEncoder() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
clearBuffer()
clean all useless value in bufferedValues and set 0.
|
protected void |
convertBuffer() |
void |
encode(boolean value,
ByteArrayOutputStream out) |
void |
encode(int value,
ByteArrayOutputStream out) |
void |
flush(ByteArrayOutputStream out)
write all values buffered in the cache to an OutputStream.
|
long |
getMaxByteSize()
The maximal possible memory size occupied by current Encoder.
|
int |
getOneItemMaxSize()
When encoder accepts a new incoming data point, the maximal possible size in byte it takes to
store in memory.
|
protected void |
reset() |
protected void |
writeRleRun()
write bytes to an outputStream using rle format: [header][value].
|
encode, encode, encode, encode, encode, encode, encodeValue, endPreviousBitPackedRun, writeOrAppendBitPackedRunpublic void encode(int value,
ByteArrayOutputStream out)
encode in class RleEncoder<Integer>public void encode(boolean value,
ByteArrayOutputStream out)
encode in class RleEncoder<Integer>public void flush(ByteArrayOutputStream out) throws IOException
flush in class RleEncoder<Integer>out - - byteArrayOutputStreamIOException - cannot flush to OutputStreamprotected void reset()
reset in class RleEncoder<Integer>protected void writeRleRun()
throws IOException
writeRleRun in class RleEncoder<Integer>IOException - cannot write RLE runprotected void clearBuffer()
RleEncoderclearBuffer in class RleEncoder<Integer>protected void convertBuffer()
convertBuffer in class RleEncoder<Integer>public int getOneItemMaxSize()
EncodergetOneItemMaxSize in class Encoderpublic long getMaxByteSize()
EncodergetMaxByteSize in class EncoderCopyright © 2022 The Apache Software Foundation. All rights reserved.