Class IntRleDecoder
- java.lang.Object
-
- org.apache.iotdb.tsfile.encoding.decoder.Decoder
-
- org.apache.iotdb.tsfile.encoding.decoder.RleDecoder
-
- org.apache.iotdb.tsfile.encoding.decoder.IntRleDecoder
-
public class IntRleDecoder extends RleDecoder
Decoder for int 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 IntRleDecoder()
-
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.booleanreadBoolean(java.nio.ByteBuffer buffer)intreadInt(java.nio.ByteBuffer buffer)read an int 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, readDouble, readFloat, readLengthAndBitWidth, readLong, readNext, readShort, reset
-
Methods inherited from class org.apache.iotdb.tsfile.encoding.decoder.Decoder
getDecoderByType, getType, setType
-
-
-
-
Method Detail
-
readBoolean
public boolean readBoolean(java.nio.ByteBuffer buffer)
- Overrides:
readBooleanin classRleDecoder
-
readInt
public int readInt(java.nio.ByteBuffer buffer)
read an int value from InputStream.- Overrides:
readIntin classRleDecoder- Parameters:
buffer- - ByteBuffer- 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
-
-