Class FixedByteSingleValueMultiColumnReaderWriter

  • All Implemented Interfaces:
    Closeable, AutoCloseable

    public class FixedByteSingleValueMultiColumnReaderWriter
    extends Object
    implements Closeable
    SingleValue MultiColumn reader and writer for fixed size columns. This implementation currently does not support reading with context, but can be enhanced to do so. TODO: Clean this up
    • Constructor Detail

      • FixedByteSingleValueMultiColumnReaderWriter

        public FixedByteSingleValueMultiColumnReaderWriter​(int numRowsPerChunk,
                                                           int[] columnSizesInBytes,
                                                           PinotDataBufferMemoryManager memoryManager,
                                                           String allocationContext)
        Constructor for the class.
        Parameters:
        numRowsPerChunk - Number of rows per chunk of data buffer.
        columnSizesInBytes - Int array containing size of columns in bytes.
        memoryManager - Memory manager to be used for allocating memory.
        allocationContext - Allocation context (for debugging).
    • Method Detail

      • getInt

        public int getInt​(int row,
                          int column)
      • getLong

        public long getLong​(int row,
                            int column)
      • getFloat

        public float getFloat​(int row,
                              int column)
      • getDouble

        public double getDouble​(int row,
                                int column)
      • getString

        public String getString​(int row,
                                int column)
      • setInt

        public void setInt​(int row,
                           int column,
                           int value)
      • setLong

        public void setLong​(int row,
                            int column,
                            long value)
      • setFloat

        public void setFloat​(int row,
                             int column,
                             float value)
      • setDouble

        public void setDouble​(int row,
                              int column,
                              double value)
      • setString

        public void setString​(int row,
                              int column,
                              String value)