Class DoublePrecisionChimpEncoder
- java.lang.Object
-
- org.apache.iotdb.tsfile.encoding.encoder.Encoder
-
- org.apache.iotdb.tsfile.encoding.encoder.GorillaEncoderV2
-
- org.apache.iotdb.tsfile.encoding.encoder.LongChimpEncoder
-
- org.apache.iotdb.tsfile.encoding.encoder.DoublePrecisionChimpEncoder
-
public class DoublePrecisionChimpEncoder extends LongChimpEncoder
This class includes code modified from Panagiotis Liakos chimp project.Copyright: 2022- Panagiotis Liakos, Katia Papakonstantinopoulou and Yannis Kotidis
Project page: https://github.com/panagiotisl/chimp
License: http://www.apache.org/licenses/LICENSE-2.0
-
-
Field Summary
-
Fields inherited from class org.apache.iotdb.tsfile.encoding.encoder.LongChimpEncoder
LEADING_REPRESENTATION, LEADING_ROUND, leadingRepresentation, leadingRound
-
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 DoublePrecisionChimpEncoder()
-
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.LongChimpEncoder
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 classLongChimpEncoder- Parameters:
out- - ByteArrayOutputStream
-
-