Class DoublePrecisionEncoderV2
- java.lang.Object
-
- org.apache.iotdb.tsfile.encoding.encoder.Encoder
-
- org.apache.iotdb.tsfile.encoding.encoder.GorillaEncoderV2
-
- org.apache.iotdb.tsfile.encoding.encoder.LongGorillaEncoder
-
- org.apache.iotdb.tsfile.encoding.encoder.DoublePrecisionEncoderV2
-
public class DoublePrecisionEncoderV2 extends LongGorillaEncoder
This class includes code modified from Michael Burman's gorilla-tsc project.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
-
-
Field Summary
-
Fields inherited from class org.apache.iotdb.tsfile.encoding.encoder.GorillaEncoderV2
bitsLeft, firstValueWasWritten, storedLeadingZeros, storedTrailingZeros
-
Fields inherited from class org.apache.iotdb.tsfile.encoding.encoder.Encoder
MAX_POINT_NUMBER, MAX_STRING_LENGTH
-
-
Constructor Summary
Constructors Constructor Description DoublePrecisionEncoderV2()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidencode(double value, java.io.ByteArrayOutputStream out)voidflush(java.io.ByteArrayOutputStream out)Write all values buffered in memory cache to OutputStream.-
Methods inherited from class org.apache.iotdb.tsfile.encoding.encoder.LongGorillaEncoder
encode, getOneItemMaxSize, reset
-
Methods inherited from class org.apache.iotdb.tsfile.encoding.encoder.GorillaEncoderV2
flipByte, getMaxByteSize, skipBit, writeBit, writeBits
-
-
-
-
Method Detail
-
encode
public final void encode(double value, java.io.ByteArrayOutputStream out)
-
flush
public void flush(java.io.ByteArrayOutputStream out)
Description copied from class:EncoderWrite all values buffered in memory cache to OutputStream.- Overrides:
flushin classLongGorillaEncoder- Parameters:
out- - ByteArrayOutputStream
-
-