Class FixedByteValueReaderWriter

    • Constructor Detail

      • FixedByteValueReaderWriter

        public FixedByteValueReaderWriter​(PinotDataBuffer dataBuffer)
    • Method Detail

      • 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
      • getUnpaddedString

        public String getUnpaddedString​(int index,
                                        int numBytesPerValue,
                                        byte paddingByte,
                                        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
      • writeInt

        public void writeInt​(int index,
                             int value)
      • writeLong

        public void writeLong​(int index,
                              long value)
      • writeFloat

        public void writeFloat​(int index,
                               float value)
      • writeDouble

        public void writeDouble​(int index,
                                double value)
      • writeBytes

        public void writeBytes​(int index,
                               int numBytesPerValue,
                               byte[] value)