public class SinglePrecisionEncoderV1 extends GorillaEncoderV1
buffer, flag, leadingZeroNum, numberLeftInBuffer, tailingZeroNumMAX_POINT_NUMBER, MAX_STRING_LENGTH| Constructor and Description |
|---|
SinglePrecisionEncoderV1() |
| Modifier and Type | Method and Description |
|---|---|
void |
encode(float value,
ByteArrayOutputStream out) |
void |
flush(ByteArrayOutputStream out)
Write all values buffered in memory 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.
|
clearBuffer, reset, writeBit, writeBit, writeBitpublic void encode(float value,
ByteArrayOutputStream out)
public void flush(ByteArrayOutputStream out)
Encoderpublic int getOneItemMaxSize()
EncodergetOneItemMaxSize in class Encoderpublic long getMaxByteSize()
EncodergetMaxByteSize in class EncoderCopyright © 2022 The Apache Software Foundation. All rights reserved.