public abstract class GorillaEncoderV2 extends Encoder
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
| Modifier and Type | Field and Description |
|---|---|
protected int |
bitsLeft |
protected boolean |
firstValueWasWritten |
protected int |
storedLeadingZeros |
protected int |
storedTrailingZeros |
MAX_POINT_NUMBER, MAX_STRING_LENGTH| Modifier | Constructor and Description |
|---|---|
protected |
GorillaEncoderV2() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
flipByte(ByteArrayOutputStream out) |
long |
getMaxByteSize()
The maximal possible memory size occupied by current Encoder.
|
protected void |
reset() |
protected void |
skipBit(ByteArrayOutputStream out)
Stores a 0 and increases the count of bits by 1
|
protected void |
writeBit(ByteArrayOutputStream out)
Stores a 1 and increases the count of bits by 1
|
protected void |
writeBits(long value,
int bits,
ByteArrayOutputStream out)
Writes the given long value using the defined amount of least significant bits.
|
protected boolean firstValueWasWritten
protected int storedLeadingZeros
protected int storedTrailingZeros
protected int bitsLeft
public final long getMaxByteSize()
EncodergetMaxByteSize in class Encoderprotected void reset()
protected void skipBit(ByteArrayOutputStream out)
protected void writeBit(ByteArrayOutputStream out)
protected void writeBits(long value,
int bits,
ByteArrayOutputStream out)
value - The long value to be writtenbits - How many bits are stored to the streamprotected void flipByte(ByteArrayOutputStream out)
Copyright © 2022 The Apache Software Foundation. All rights reserved.