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 java.util.List<Pair<java.lang.Integer,byte[]>>decodeAll(int target, java.util.List<java.nio.ByteBuffer> pageList)Deprecated.For special value in page list, get its bitmap index.booleanhasNext(java.nio.ByteBuffer buffer)Deprecated.Check whether there is number left for reading.java.math.BigDecimalreadBigDecimal(java.nio.ByteBuffer buffer)Deprecated.BinaryreadBinary(java.nio.ByteBuffer buffer)Deprecated.booleanreadBoolean(java.nio.ByteBuffer buffer)Deprecated.In current version, boolean value is equal to Enums value in schema.doublereadDouble(java.nio.ByteBuffer buffer)Deprecated.floatreadFloat(java.nio.ByteBuffer buffer)Deprecated.intreadInt(java.nio.ByteBuffer buffer)Deprecated.longreadLong(java.nio.ByteBuffer buffer)Deprecated.shortreadShort(java.nio.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(java.nio.ByteBuffer buffer)
Deprecated.
-
decodeAll
public java.util.List<Pair<java.lang.Integer,byte[]>> decodeAll(int target, java.util.List<java.nio.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(java.nio.ByteBuffer buffer)
Deprecated.Check whether there is number left for reading.
-
readBoolean
public boolean readBoolean(java.nio.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(java.nio.ByteBuffer buffer)
Deprecated.
-
readLong
public long readLong(java.nio.ByteBuffer buffer)
Deprecated.
-
readFloat
public float readFloat(java.nio.ByteBuffer buffer)
Deprecated.
-
readDouble
public double readDouble(java.nio.ByteBuffer buffer)
Deprecated.- Overrides:
readDoublein classDecoder
-
readBinary
public Binary readBinary(java.nio.ByteBuffer buffer)
Deprecated.- Overrides:
readBinaryin classDecoder
-
readBigDecimal
public java.math.BigDecimal readBigDecimal(java.nio.ByteBuffer buffer)
Deprecated.- Overrides:
readBigDecimalin classDecoder
-
-