Class BitmapDecoder
- java.lang.Object
-
- org.apache.iotdb.tsfile.encoding.decoder.Decoder
-
- org.apache.iotdb.tsfile.encoding.decoder.BitmapDecoder
-
@Deprecated public class BitmapDecoder extends Decoder
Deprecated.(2019.1.25, The bitmap data type has been removed., We can reserve this class, and reuse it later.)Decoder switch or enums value using bitmap, bitmap-encoding:.<length> <num> <encoded-data>
-
-
Constructor Summary
Constructors Constructor Description BitmapDecoder()Deprecated.BitmapDecoder constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description List<Pair<Integer,byte[]>>decodeAll(int target, List<ByteBuffer> pageList)Deprecated.For special value in page list, get its bitmap index.booleanhasNext(ByteBuffer buffer)Deprecated.Check whether there is number left for reading.BigDecimalreadBigDecimal(ByteBuffer buffer)Deprecated.BinaryreadBinary(ByteBuffer buffer)Deprecated.booleanreadBoolean(ByteBuffer buffer)Deprecated.In current version, boolean value is equal to Enums value in schema.doublereadDouble(ByteBuffer buffer)Deprecated.floatreadFloat(ByteBuffer buffer)Deprecated.intreadInt(ByteBuffer buffer)Deprecated.longreadLong(ByteBuffer buffer)Deprecated.shortreadShort(ByteBuffer buffer)Deprecated.voidreset()Deprecated.-
Methods inherited from class org.apache.iotdb.tsfile.encoding.decoder.Decoder
getDecoderByType, getType, setType
-
-
-
-
Method Detail
-
readInt
public int readInt(ByteBuffer buffer)
Deprecated.
-
decodeAll
public List<Pair<Integer,byte[]>> decodeAll(int target, List<ByteBuffer> pageList)
Deprecated.For special value in page list, get its bitmap index.- Parameters:
target- value to get its bitmap indexpageList- input page list- Returns:
- List(Pair of ( length, bitmap index) )
-
hasNext
public boolean hasNext(ByteBuffer buffer)
Deprecated.Check whether there is number left for reading.- Specified by:
hasNextin classDecoder- Parameters:
buffer- : decoded data saved in InputStream- Returns:
- true or false to indicate whether there is number left
- Throws:
IOException- cannot read next value
-
readBoolean
public boolean readBoolean(ByteBuffer buffer)
Deprecated.In current version, boolean value is equal to Enums value in schema.- Overrides:
readBooleanin classDecoder- Parameters:
buffer- : decoded data saved in InputStream- Throws:
TsFileDecodingException- cannot read next value
-
readShort
public short readShort(ByteBuffer buffer)
Deprecated.
-
readLong
public long readLong(ByteBuffer buffer)
Deprecated.
-
readFloat
public float readFloat(ByteBuffer buffer)
Deprecated.
-
readDouble
public double readDouble(ByteBuffer buffer)
Deprecated.- Overrides:
readDoublein classDecoder
-
readBinary
public Binary readBinary(ByteBuffer buffer)
Deprecated.- Overrides:
readBinaryin classDecoder
-
readBigDecimal
public BigDecimal readBigDecimal(ByteBuffer buffer)
Deprecated.- Overrides:
readBigDecimalin classDecoder
-
-