public class IntGorillaEncoder extends GorillaEncoderV2
Copyright: 2016-2018 Michael Burman and/or other contributors
Project page: https://github.com/burmanm/gorilla-tsc
License: http://www.apache.org/licenses/LICENSE-2.0
bitsLeft, firstValueWasWritten, storedLeadingZeros, storedTrailingZerosMAX_POINT_NUMBER, MAX_STRING_LENGTH| Constructor and Description |
|---|
IntGorillaEncoder() |
| Modifier and Type | Method and Description |
|---|---|
void |
encode(int value,
ByteArrayOutputStream out) |
void |
flush(ByteArrayOutputStream out)
Write all values buffered in memory cache to OutputStream.
|
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() |
flipByte, getMaxByteSize, skipBit, writeBit, writeBitspublic final int getOneItemMaxSize()
EncodergetOneItemMaxSize in class Encoderpublic final void encode(int value,
ByteArrayOutputStream out)
public void flush(ByteArrayOutputStream out)
Encoderprotected void reset()
reset in class GorillaEncoderV2Copyright © 2022 The Apache Software Foundation. All rights reserved.