public class LongRleEncoder extends RleEncoder<Long>
bitPackedGroupCount, bitWidth, bufferedValues, byteCache, bytesBuffer, config, isBitPackRun, isBitWidthSaved, numBufferedValues, preValue, repeatCount, valuesMAX_POINT_NUMBER, MAX_STRING_LENGTH| Constructor and Description |
|---|
LongRleEncoder()
Constructor of LongRleEncoder.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
clearBuffer()
clean all useless value in bufferedValues and set 0.
|
protected void |
convertBuffer() |
void |
encode(long value,
ByteArrayOutputStream out) |
void |
flush(ByteArrayOutputStream out)
write all values buffered in cache to 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 OutputStream using rle rle format: [header][value].
|
encode, encode, encode, encode, encode, encode, encode, encodeValue, endPreviousBitPackedRun, writeOrAppendBitPackedRunpublic void encode(long value,
ByteArrayOutputStream out)
encode in class RleEncoder<Long>public void flush(ByteArrayOutputStream out) throws IOException
flush in class RleEncoder<Long>out - - byteArrayOutputStreamIOException - cannot flush to OutputStreamprotected void reset()
reset in class RleEncoder<Long>protected void writeRleRun()
throws IOException
writeRleRun in class RleEncoder<Long>IOException - cannot write rle runprotected void clearBuffer()
RleEncoderclearBuffer in class RleEncoder<Long>protected void convertBuffer()
convertBuffer in class RleEncoder<Long>public int getOneItemMaxSize()
EncodergetOneItemMaxSize in class Encoderpublic long getMaxByteSize()
EncodergetMaxByteSize in class EncoderCopyright © 2022 The Apache Software Foundation. All rights reserved.