Package org.h2.result

Class SimpleRowValue

All Implemented Interfaces:
HasSQL, Typed

public class SimpleRowValue extends SearchRow
A simple row that contains data for only one column.
  • Field Details

    • index

      private int index
    • virtualColumnCount

      private final int virtualColumnCount
    • data

      private Value data
  • Constructor Details

    • SimpleRowValue

      public SimpleRowValue(int columnCount)
    • SimpleRowValue

      public SimpleRowValue(int columnCount, int index)
  • Method Details

    • getColumnCount

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

      public Value getValue(int idx)
      Description copied from class: SearchRow
      Get the value for the column
      Specified by:
      getValue in class SearchRow
      Parameters:
      idx - the column number (starting with 0)
      Returns:
      the value
    • setValue

      public void setValue(int idx, Value v)
      Description copied from class: SearchRow
      Set the value for given column
      Specified by:
      setValue in class SearchRow
      Parameters:
      idx - the column number (starting with 0)
      v - the new value
    • toString

      public String toString()
      Overrides:
      toString in class Value
    • getMemory

      public int getMemory()
      Description copied from class: SearchRow
      Get the estimated memory used for this row, in bytes.
      Specified by:
      getMemory in class SearchRow
      Returns:
      the memory
    • isNull

      public boolean isNull(int index)
      Description copied from class: SearchRow
      Determine if specified column contains NULL
      Overrides:
      isNull in class SearchRow
      Parameters:
      index - column index
      Returns:
      true if NULL
    • copyFrom

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