Package processing.data
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.
Additional TableRow methods are documented in the Processing Data Javadoc.
-
Method Summary
Modifier and TypeMethodDescriptionintReturns the number of columns in a TableRow.getColumnTitle(int column) Returns the name for a column in a TableRow based on its ID (e.g.String[]intgetColumnType(int column) intgetColumnType(String columnName) int[]doublegetDouble(int column) doublefloatgetFloat(int column) Retrieves a float value from the TableRow's specified column.floatintgetInt(int column) Retrieves an integer value from the TableRow's specified column.intlonggetLong(int column) longgetString(int column) Retrieves a String value from the TableRow's specified column.voidprint()voidsetDouble(int column, double value) voidvoidsetFloat(int column, float value) Stores a float value in the TableRow's specified column.voidvoidsetInt(int column, int value) Stores an integer value in the TableRow's specified column.voidvoidsetLong(int column, long value) voidvoidStores a String value in the TableRow's specified column.voidvoidwrite(PrintWriter writer)
-
Method Details
-
getString
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
- 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
- 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
- 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
- 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
- Parameters:
columnName- title of the column to reference
-
setString
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 columnvalue- value to assign- See Also:
-
setString
- 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 columnvalue- value to assign- See Also:
-
setInt
- Parameters:
columnName- title of the target column
-
setLong
void setLong(int column, long value) - Parameters:
column- ID number of the target columnvalue- value to assign- See Also:
-
setLong
- 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 columnvalue- value to assign- See Also:
-
setFloat
- Parameters:
columnName- title of the target column
-
setDouble
void setDouble(int column, double value) - Parameters:
column- ID number of the target columnvalue- value to assign- See Also:
-
setDouble
- Parameters:
columnName- title of the target column
-
getColumnCount
int getColumnCount()Returns the number of columns in a TableRow.- Returns:
- count of all columns
-
getColumnType
- 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
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
-
print
void print()
-