Class LongRleDecoder
- java.lang.Object
-
- org.apache.iotdb.tsfile.encoding.decoder.Decoder
-
- org.apache.iotdb.tsfile.encoding.decoder.RleDecoder
-
- org.apache.iotdb.tsfile.encoding.decoder.LongRleDecoder
-
public class LongRleDecoder extends RleDecoder
Decoder for long value using rle or bit-packing.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.apache.iotdb.tsfile.encoding.decoder.RleDecoder
RleDecoder.Mode
-
-
Field Summary
-
Fields inherited from class org.apache.iotdb.tsfile.encoding.decoder.RleDecoder
bitPackingNum, bitWidth, byteCache, config, currentCount, isLengthAndBitWidthReaded, length, mode
-
-
Constructor Summary
Constructors Constructor Description LongRleDecoder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidinitPacker()protected voidreadBitPackingBuffer(int bitPackedGroupCount, int lastBitPackedNum)Read bit-packing package and save them in buffer.longreadLong(java.nio.ByteBuffer buffer)read a long value from InputStream.protected voidreadNumberInRle()Read rle package and save them in buffer.-
Methods inherited from class org.apache.iotdb.tsfile.encoding.decoder.RleDecoder
callReadBitPackingBuffer, getHeader, hasNext, hasNextPackage, readBigDecimal, readBinary, readBoolean, readDouble, readFloat, readInt, readLengthAndBitWidth, readNext, readShort, reset
-
Methods inherited from class org.apache.iotdb.tsfile.encoding.decoder.Decoder
getDecoderByType, getType, setType
-
-
-
-
Method Detail
-
readLong
public long readLong(java.nio.ByteBuffer buffer)
read a long value from InputStream.- Overrides:
readLongin classRleDecoder- Parameters:
buffer- - InputStream- Returns:
- value - current valid value
-
initPacker
protected void initPacker()
- Specified by:
initPackerin classRleDecoder
-
readNumberInRle
protected void readNumberInRle() throws java.io.IOExceptionDescription copied from class:RleDecoderRead rle package and save them in buffer.- Specified by:
readNumberInRlein classRleDecoder- Throws:
java.io.IOException- cannot read number
-
readBitPackingBuffer
protected void readBitPackingBuffer(int bitPackedGroupCount, int lastBitPackedNum)Description copied from class:RleDecoderRead bit-packing package and save them in buffer.- Specified by:
readBitPackingBufferin classRleDecoder- Parameters:
bitPackedGroupCount- number of group numberlastBitPackedNum- number of useful value in last group
-
-