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 Detail

      • BitmapDecoder

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

      • reset

        public void reset()
        Deprecated.
        Specified by:
        reset in class Decoder
      • 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 index
        pageList - 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:
        hasNext in class Decoder
        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:
        readBoolean in class Decoder
        Parameters:
        buffer - : decoded data saved in InputStream
        Throws:
        TsFileDecodingException - cannot read next value