Class LongSprintzEncoder
- java.lang.Object
-
- org.apache.iotdb.tsfile.encoding.encoder.Encoder
-
- org.apache.iotdb.tsfile.encoding.encoder.SprintzEncoder
-
- org.apache.iotdb.tsfile.encoding.encoder.LongSprintzEncoder
-
public class LongSprintzEncoder extends SprintzEncoder
-
-
Field Summary
Fields Modifier and Type Field Description protected java.util.Vector<java.lang.Long>values-
Fields inherited from class org.apache.iotdb.tsfile.encoding.encoder.SprintzEncoder
bitWidth, Block_size, byteCache, config, groupMax, groupNum, isFirstCached, logger, predictMethod
-
Fields inherited from class org.apache.iotdb.tsfile.encoding.encoder.Encoder
MAX_POINT_NUMBER, MAX_STRING_LENGTH
-
-
Constructor Summary
Constructors Constructor Description LongSprintzEncoder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidbitPack()protected java.lang.Longdelta(java.lang.Long value, java.lang.Long preValue)voidencode(long value, java.io.ByteArrayOutputStream out)protected java.lang.Longfire(java.lang.Long value, java.lang.Long preValue)voidflush(java.io.ByteArrayOutputStream out)Write all values buffered in memory cache to OutputStream.longgetMaxByteSize()The maximal possible memory size occupied by current Encoder.intgetOneItemMaxSize()When encoder accepts a new incoming data point, the maximal possible size in byte it takes to store in memory.protected java.lang.Longpredict(java.lang.Long value, java.lang.Long preVlaue)protected voidreset()
-
-
-
Method Detail
-
reset
protected void reset()
- Overrides:
resetin classSprintzEncoder
-
getOneItemMaxSize
public int getOneItemMaxSize()
Description copied from class:EncoderWhen encoder accepts a new incoming data point, the maximal possible size in byte it takes to store in memory.- Overrides:
getOneItemMaxSizein classEncoder- Returns:
- the maximal possible size of one data item encoded by this encoder
-
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
-
predict
protected java.lang.Long predict(java.lang.Long value, java.lang.Long preVlaue) throws TsFileEncodingException- Throws:
TsFileEncodingException
-
bitPack
protected void bitPack() throws java.io.IOException- Specified by:
bitPackin classSprintzEncoder- Throws:
java.io.IOException
-
delta
protected java.lang.Long delta(java.lang.Long value, java.lang.Long preValue)
-
fire
protected java.lang.Long fire(java.lang.Long value, java.lang.Long preValue)
-
flush
public void flush(java.io.ByteArrayOutputStream out) throws java.io.IOExceptionDescription copied from class:EncoderWrite all values buffered in memory cache to OutputStream.
-
-