Class 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.
      boolean hasNext​(java.nio.ByteBuffer buffer)
      Deprecated.
      Check whether there is number left for reading.
      java.math.BigDecimal readBigDecimal​(java.nio.ByteBuffer buffer)
      Deprecated.
       
      Binary readBinary​(java.nio.ByteBuffer buffer)
      Deprecated.
       
      boolean readBoolean​(java.nio.ByteBuffer buffer)
      Deprecated.
      In current version, boolean value is equal to Enums value in schema.
      double readDouble​(java.nio.ByteBuffer buffer)
      Deprecated.
       
      float readFloat​(java.nio.ByteBuffer buffer)
      Deprecated.
       
      int readInt​(java.nio.ByteBuffer buffer)
      Deprecated.
       
      long readLong​(java.nio.ByteBuffer buffer)
      Deprecated.
       
      short readShort​(java.nio.ByteBuffer buffer)
      Deprecated.
       
      void reset()
      Deprecated.
       
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • BitmapDecoder

        public BitmapDecoder()
        Deprecated.
        BitmapDecoder constructor.
    • Method Detail

      • readInt

        public int readInt​(java.nio.ByteBuffer buffer)
        Deprecated.
        Overrides:
        readInt in class Decoder
      • reset

        public void reset()
        Deprecated.
        Specified by:
        reset in class Decoder
      • 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 index
        pageList - 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.
        Specified by:
        hasNext in class Decoder
        Parameters:
        buffer - : decoded data saved in InputStream
        Returns:
        true or false to indicate whether there is number left
        Throws:
        java.io.IOException - cannot read next value
      • readBoolean

        public boolean readBoolean​(java.nio.ByteBuffer buffer)
        Deprecated.
        In current version, boolean value is equal to Enums value in schema.
        Overrides:
        readBoolean in class Decoder
        Parameters:
        buffer - : decoded data saved in InputStream
        Throws:
        TsFileDecodingException - cannot read next value
      • readShort

        public short readShort​(java.nio.ByteBuffer buffer)
        Deprecated.
        Overrides:
        readShort in class Decoder
      • readLong

        public long readLong​(java.nio.ByteBuffer buffer)
        Deprecated.
        Overrides:
        readLong in class Decoder
      • readFloat

        public float readFloat​(java.nio.ByteBuffer buffer)
        Deprecated.
        Overrides:
        readFloat in class Decoder
      • readDouble

        public double readDouble​(java.nio.ByteBuffer buffer)
        Deprecated.
        Overrides:
        readDouble in class Decoder
      • readBinary

        public Binary readBinary​(java.nio.ByteBuffer buffer)
        Deprecated.
        Overrides:
        readBinary in class Decoder
      • readBigDecimal

        public java.math.BigDecimal readBigDecimal​(java.nio.ByteBuffer buffer)
        Deprecated.
        Overrides:
        readBigDecimal in class Decoder