Class IntZigzagEncoder
- java.lang.Object
-
- org.apache.iotdb.tsfile.encoding.encoder.Encoder
-
- org.apache.iotdb.tsfile.encoding.encoder.IntZigzagEncoder
-
public class IntZigzagEncoder extends Encoder
Encoder for int 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 IntZigzagEncoder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidencode(int 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.
-
-
-
Method Detail
-
encode
public void encode(int 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
-
-