Interface TableRow


public interface TableRow
A TableRow object represents a single row of data values, stored in columns, from a Table.

Additional TableRow methods are documented in the Processing Data Javadoc.
See Also:
  • Method Details

    • getString

      String getString(int column)
      Retrieves a String value from the TableRow's specified column. The column may be specified by either its ID or title.
      Parameters:
      column - ID number of the column to reference
      See Also:
    • getString

      String getString(String columnName)
      Parameters:
      columnName - title of the column to reference
    • getInt

      int getInt(int column)
      Retrieves an integer value from the TableRow's specified column. The column may be specified by either its ID or title.
      Parameters:
      column - ID number of the column to reference
      See Also:
    • getInt

      int getInt(String columnName)
      Parameters:
      columnName - title of the column to reference
    • getLong

      long getLong(int column)
      Parameters:
      column - ID number of the column to reference
      See Also:
    • getLong

      long getLong(String columnName)
      Parameters:
      columnName - title of the column to reference
    • getFloat

      float getFloat(int column)
      Retrieves a float value from the TableRow's specified column. The column may be specified by either its ID or title.
      Parameters:
      column - ID number of the column to reference
      See Also:
    • getFloat

      float getFloat(String columnName)
      Parameters:
      columnName - title of the column to reference
    • getDouble

      double getDouble(int column)
      Parameters:
      column - ID number of the column to reference
      See Also:
    • getDouble

      double getDouble(String columnName)
      Parameters:
      columnName - title of the column to reference
    • setString

      void setString(int column, String value)
      Stores a String value in the TableRow's specified column. The column may be specified by either its ID or title.
      Parameters:
      column - ID number of the target column
      value - value to assign
      See Also:
    • setString

      void setString(String columnName, String value)
      Parameters:
      columnName - title of the target column
    • setInt

      void setInt(int column, int value)
      Stores an integer value in the TableRow's specified column. The column may be specified by either its ID or title.
      Parameters:
      column - ID number of the target column
      value - value to assign
      See Also:
    • setInt

      void setInt(String columnName, int value)
      Parameters:
      columnName - title of the target column
    • setLong

      void setLong(int column, long value)
      Parameters:
      column - ID number of the target column
      value - value to assign
      See Also:
    • setLong

      void setLong(String columnName, long value)
      Parameters:
      columnName - title of the target column
    • setFloat

      void setFloat(int column, float value)
      Stores a float value in the TableRow's specified column. The column may be specified by either its ID or title.
      Parameters:
      column - ID number of the target column
      value - value to assign
      See Also:
    • setFloat

      void setFloat(String columnName, float value)
      Parameters:
      columnName - title of the target column
    • setDouble

      void setDouble(int column, double value)
      Parameters:
      column - ID number of the target column
      value - value to assign
      See Also:
    • setDouble

      void setDouble(String columnName, double value)
      Parameters:
      columnName - title of the target column
    • getColumnCount

      int getColumnCount()
      Returns the number of columns in a TableRow.
      Returns:
      count of all columns
    • getColumnType

      int getColumnType(String columnName)
      Parameters:
      columnName - title of the target column
      Returns:
      type of the column
    • getColumnType

      int getColumnType(int column)
      Parameters:
      column - ID number of the target column
    • getColumnTypes

      int[] getColumnTypes()
      Returns:
      list of all column types
    • getColumnTitle

      String getColumnTitle(int column)
      Returns the name for a column in a TableRow based on its ID (e.g. 0, 1, 2, etc.)
      Parameters:
      column - ID number of the target column
      Returns:
      title of the column
    • getColumnTitles

      String[] getColumnTitles()
      Returns:
      list of all column titles
    • write

      void write(PrintWriter writer)
    • print

      void print()