Package | Description |
---|---|
org.youscope.common.table |
Modifier and Type | Method and Description |
---|---|
void |
Table.addRow(java.io.Serializable... values)
Adds a row to the table.
|
void |
Table.addRow(TemporaryRow temporaryRow)
Adds a temporary row to this table.
|
void |
Table.addRows(Table table)
Adds all rows of the table at the end of the rows of this table.
|
static void |
TableHelper.assertSupported(java.lang.Class<? extends java.io.Serializable> valueType)
Helper function throwing a
TableException if given value type is not supported by YouScope, and doing nothing otherwise. |
void |
TableConsumer.consumeTable(Table table)
Passes the table to the measurement component, such that it can interpret it the next time it is executed.
|
static <T extends java.io.Serializable> |
ColumnDefinition.createColumnDefinition(java.lang.String columnName,
java.lang.String columnDescription,
java.lang.Class<T> valueType,
boolean nullAllowed)
Creates a new Column definition with the given column name and value type.
|
static <T extends java.io.Serializable> |
TableHelper.createEntry(java.lang.Class<T> valueType,
T value,
boolean nullAllowed)
Creates a table entry containing the given value.
|
TemporaryRow |
Table.createTemporaryRow()
Creates a temporary row.
|
<T extends java.io.Serializable> |
TemporaryRow.get(ColumnDefinition<T> columnDefinition) |
<T extends java.io.Serializable> |
RowView.get(ColumnDefinition<T> columnDefinition)
Returns the table entry corresponding to the given column definition.
|
<T extends java.io.Serializable> |
TemporaryRow.get(int column,
java.lang.Class<T> valueType) |
<T extends java.io.Serializable> |
RowView.get(int column,
java.lang.Class<T> valueType)
Returns the entry in the given column with the given value type.
|
TableEntry<?> |
TemporaryRow.get(java.lang.String columnName) |
TableEntry<?> |
RowView.get(java.lang.String columnName)
Returns the entry with the given column name.
|
<T extends java.io.Serializable> |
TemporaryRow.get(java.lang.String columnName,
java.lang.Class<T> valueType) |
<T extends java.io.Serializable> |
RowView.get(java.lang.String columnName,
java.lang.Class<T> valueType)
Returns the entry in the column with the given column name, having the given value type.
|
ColumnDefinition<?> |
TableDefinition.getColumnDefinition(java.lang.String columnName)
Returns the column definition with the given column name.
|
<T extends java.io.Serializable> |
Table.getColumnView(ColumnDefinition<T> columnDefinition)
Returns a view on the column which equals (only name and value type) a given, already known, column definition.
|
<T extends java.io.Serializable> |
Table.getColumnView(int column,
java.lang.Class<T> valueType)
Returns a view on the column with the given index, having the given value type.
|
ColumnView<?> |
Table.getColumnView(java.lang.String columnName)
Returns a view on the column with the given name.
|
<T extends java.io.Serializable> |
Table.getColumnView(java.lang.String columnName,
java.lang.Class<T> valueType)
Returns a view on the column with the given name, having the given value type.
|
<T extends java.io.Serializable> |
Table.getEntry(int row,
ColumnDefinition<T> columnDefinition)
Returns the entry at the given row corresponding to the given columnDefinition.
|
<T extends java.io.Serializable> |
Table.getEntry(int row,
int column,
java.lang.Class<T> valueType)
Returns the entry at the given row and column, having the given value type.
|
TableEntry<?> |
Table.getEntry(int row,
java.lang.String columnName)
Returns the entry at the given row and column.
|
<T extends java.io.Serializable> |
Table.getEntry(int row,
java.lang.String columnName,
java.lang.Class<T> valueType)
Returns the entry at the given row and column, having the given value type.
|
<T extends java.io.Serializable> |
TemporaryRow.getValue(ColumnDefinition<T> columnDefinition) |
<T extends java.io.Serializable> |
RowView.getValue(ColumnDefinition<T> columnDefinition)
Returns the value of the table entry corresponding to the given column definition.
|
<T extends java.io.Serializable> |
TemporaryRow.getValue(int column,
java.lang.Class<T> valueType) |
<T extends java.io.Serializable> |
RowView.getValue(int column,
java.lang.Class<T> valueType)
Returns the value of the entry in the given column, having the given value type.
|
<T extends java.io.Serializable> |
Table.getValue(int row,
ColumnDefinition<T> columnDefinition)
Returns the value of the entry at the given row corresponding to the given columnDefinition.
|
<T extends java.io.Serializable> |
Table.getValue(int row,
int column,
java.lang.Class<T> valueType)
Returns the entry's value at the given row and column, having the given value type.
|
java.io.Serializable |
Table.getValue(int row,
java.lang.String columnName)
Returns the entry's value at the given row and column.
|
<T extends java.io.Serializable> |
Table.getValue(int row,
java.lang.String columnName,
java.lang.Class<T> valueType)
Returns the entry's value at the given row and column, having the given value type.
|
java.io.Serializable |
TemporaryRow.getValue(java.lang.String columnName) |
java.io.Serializable |
RowView.getValue(java.lang.String columnName)
Returns the value of the entry in the column with the given column name.
|
<T extends java.io.Serializable> |
TemporaryRow.getValue(java.lang.String columnName,
java.lang.Class<T> valueType) |
<T extends java.io.Serializable> |
RowView.getValue(java.lang.String columnName,
java.lang.Class<T> valueType)
Returns the value of the entry in the column with the given column name, having the given value type.
|
void |
Table.insertRow(int row,
java.io.Serializable... values)
Inserts a row to the table at the given row.
|
void |
Table.insertRow(int row,
TemporaryRow temporaryRow)
Inserts a temporary row at the given row index to this table.
|
void |
TableEntry.setValue(java.io.Serializable value)
Sets the table value to the given argument.
|
void |
TableEntry.setValue(TableEntry<? extends java.io.Serializable> tableEntry)
Sets the table value to the given tableEntry value.
|
Table |
Table.toTable(TableDefinition tableDefinition)
Creates a table containing conforming to the provided table definition.
|
Constructor and Description |
---|
ColumnDefinition(java.lang.String columnName,
java.lang.String columnDescription,
java.lang.Class<T> valueType,
boolean nullAllowed)
Creates a new Column definition with the given column name and value type.
|
Table(java.lang.String tableName,
java.lang.String tableDescription,
ColumnDefinition<?>... columnDefinitions)
Constructor using information on the column names and types.
|
Table(java.lang.String tableName,
java.lang.String tableDescription,
long creationTime,
ColumnDefinition<?>... columnDefinitions)
Constructor using information on the column names and types.
|
Table(java.lang.String tableName,
java.lang.String tableDescription,
long creationTime,
PositionInformation positionInformation,
ExecutionInformation executionInformation,
ColumnDefinition<?>... columnDefinitions)
Constructor using information on the column names and types.
|
Table(java.lang.String tableName,
java.lang.String tableDescription,
PositionInformation positionInformation,
ExecutionInformation executionInformation,
ColumnDefinition<?>... columnDefinitions)
Constructor using information on the column names and types.
|
TemporaryRow(ColumnDefinition<?>... columnDefinitions)
Creates a temporary row with columns in agreement with the given column definitions.
|