Class VarLengthValueReader

    • Constructor Detail

      • VarLengthValueReader

        public VarLengthValueReader​(PinotDataBuffer dataBuffer)
    • Method Detail

      • isVarLengthValueBuffer

        public static boolean isVarLengthValueBuffer​(PinotDataBuffer buffer)
      • getNumValues

        public int getNumValues()
      • getInt

        public int getInt​(int index)
        Specified by:
        getInt in interface ValueReader
      • getLong

        public long getLong​(int index)
        Specified by:
        getLong in interface ValueReader
      • getFloat

        public float getFloat​(int index)
        Specified by:
        getFloat in interface ValueReader
      • getDouble

        public double getDouble​(int index)
        Specified by:
        getDouble in interface ValueReader
      • getUnpaddedBytes

        public byte[] getUnpaddedBytes​(int index,
                                       int numBytesPerValue,
                                       byte[] buffer)
        Description copied from interface: ValueReader
        Returns un-padded bytes for string. NOTE: The passed in reusable buffer should have capacity of at least numBytesPerValue.
        Specified by:
        getUnpaddedBytes in interface ValueReader
      • getUnpaddedString

        public String getUnpaddedString​(int index,
                                        int numBytesPerValue,
                                        byte[] buffer)
        Description copied from interface: ValueReader
        NOTE: The passed in reusable buffer should have capacity of at least numBytesPerValue.
        Specified by:
        getUnpaddedString in interface ValueReader
      • getPaddedString

        public String getPaddedString​(int index,
                                      int numBytesPerValue,
                                      byte[] buffer)
        Description copied from interface: ValueReader
        NOTE: The passed in reusable buffer should have capacity of at least numBytesPerValue.
        Specified by:
        getPaddedString in interface ValueReader
      • getBytes

        public byte[] getBytes​(int index,
                               int numBytesPerValue)
        Description copied from interface: ValueReader
        NOTE: Do not reuse buffer for BYTES because the return value can have variable length.
        Specified by:
        getBytes in interface ValueReader
      • compareUtf8Bytes

        public int compareUtf8Bytes​(int index,
                                    int numBytesPerValue,
                                    byte[] bytes)
        Description copied from interface: ValueReader
        Returns the comparison result of the UTF-8 decoded values.
        Specified by:
        compareUtf8Bytes in interface ValueReader
      • compareBytes

        public int compareBytes​(int index,
                                int numBytesPerValue,
                                byte[] bytes)
        Description copied from interface: ValueReader
        Returns the comparison result of the bytes values.
        Specified by:
        compareBytes in interface ValueReader