public class DictionaryEncoder extends Encoder
Encoding format:
<map> <indexes>
<map> := <map length> <map data>
<map data> := [<entry size><entry data>]...
<indexes> := [<index>]...
MAX_POINT_NUMBER, MAX_STRING_LENGTH| Constructor and Description |
|---|
DictionaryEncoder() |
| Modifier and Type | Method and Description |
|---|---|
void |
encode(Binary 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.
|
public void encode(Binary 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.