Class LongZigzagEncoder
- java.lang.Object
-
- org.apache.iotdb.tsfile.encoding.encoder.Encoder
-
- org.apache.iotdb.tsfile.encoding.encoder.LongZigzagEncoder
-
public class LongZigzagEncoder extends Encoder
Encoder for long value using Zigzag . For more information, see https://gist.github.com/mfuerstenau/ba870a29e16536fdbaba
-
-
Field Summary
-
Fields inherited from class org.apache.iotdb.tsfile.encoding.encoder.Encoder
MAX_POINT_NUMBER, MAX_STRING_LENGTH
-
-
Constructor Summary
Constructors Constructor Description LongZigzagEncoder()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidencode(long value, java.io.ByteArrayOutputStream out)voidflush(java.io.ByteArrayOutputStream out)Write all values buffered in memory cache to OutputStream.longgetMaxByteSize()The maximal possible memory size occupied by current Encoder.static java.lang.Stringprint(byte[] bytes)
-
-
-
Method Detail
-
print
public static java.lang.String print(byte[] bytes)
-
encode
public void encode(long value, java.io.ByteArrayOutputStream out)
-
flush
public void flush(java.io.ByteArrayOutputStream out) throws java.io.IOExceptionDescription copied from class:EncoderWrite all values buffered in memory cache to OutputStream.
-
getMaxByteSize
public long getMaxByteSize()
Description copied from class:EncoderThe maximal possible memory size occupied by current Encoder. This statistic value doesn't involve OutputStream.- Overrides:
getMaxByteSizein classEncoder- Returns:
- the maximal size of possible memory occupied by current encoder
-
-