Package org.h2.result

Class Sparse

  • All Implemented Interfaces:
    HasSQL, Typed

    public final class Sparse
    extends DefaultRow
    Class Sparse.
    • 11/16/19 7:35 PM initial creation
    • Field Detail

      • columnCount

        private final int columnCount
      • map

        private final int[] map
    • Constructor Detail

      • Sparse

        Sparse​(int columnCount,
               int capacity,
               int[] map)
    • Method Detail

      • getColumnCount

        public int getColumnCount()
        Description copied from class: SearchRow
        Get the column count.
        Overrides:
        getColumnCount in class DefaultRow
        Returns:
        the column count
      • getValue

        public Value getValue​(int i)
        Description copied from class: SearchRow
        Get the value for the column
        Overrides:
        getValue in class DefaultRow
        Parameters:
        i - the column number (starting with 0)
        Returns:
        the value
      • setValue

        public void setValue​(int i,
                             Value v)
        Description copied from class: SearchRow
        Set the value for given column
        Overrides:
        setValue in class DefaultRow
        Parameters:
        i - the column number (starting with 0)
        v - the new value
      • copyFrom

        public void copyFrom​(SearchRow source)
        Description copied from class: SearchRow
        Copy all relevant values from the source to this row.
        Overrides:
        copyFrom in class DefaultRow
        Parameters:
        source - source of column values