Class GorillaEncoderV1
- java.lang.Object
-
- org.apache.iotdb.tsfile.encoding.encoder.Encoder
-
- org.apache.iotdb.tsfile.encoding.encoder.GorillaEncoderV1
-
- Direct Known Subclasses:
DoublePrecisionEncoderV1,SinglePrecisionEncoderV1
public abstract class GorillaEncoderV1 extends Encoder
Gorilla encoding. For more information about how it works, please see http://www.vldb.org/pvldb/vol8/p1816-teller.pdf
-
-
Field Summary
Fields Modifier and Type Field Description protected bytebufferprotected booleanflagprotected intleadingZeroNumprotected intnumberLeftInBufferprotected inttailingZeroNum-
Fields inherited from class org.apache.iotdb.tsfile.encoding.encoder.Encoder
MAX_POINT_NUMBER, MAX_STRING_LENGTH
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedGorillaEncoderV1()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidclearBuffer(java.io.ByteArrayOutputStream out)protected voidreset()protected voidwriteBit(boolean b, java.io.ByteArrayOutputStream out)protected voidwriteBit(int i, java.io.ByteArrayOutputStream out)protected voidwriteBit(long i, java.io.ByteArrayOutputStream out)
-
-
-
Method Detail
-
writeBit
protected void writeBit(boolean b, java.io.ByteArrayOutputStream out)
-
writeBit
protected void writeBit(int i, java.io.ByteArrayOutputStream out)
-
writeBit
protected void writeBit(long i, java.io.ByteArrayOutputStream out)
-
clearBuffer
protected void clearBuffer(java.io.ByteArrayOutputStream out)
-
reset
protected void reset()
-
-