|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.knime.core.data.def.DefaultRow
public class DefaultRow
Default row for DataCells which keeps a row identifier
and an array of DataCell objects.
| Constructor Summary | |
|---|---|
DefaultRow(RowKey rowKey,
DataCell... row)
Inits a new DefaultRow object by row key and an array of
DataCells. |
|
DefaultRow(RowKey key,
DataRow row)
Creates an new row, using the data of the specified row, and overwrites the row key with the given new one. |
|
DefaultRow(RowKey rowKey,
double... row)
Inits a new DefaultRow object by row key and an array of
double values. |
|
DefaultRow(RowKey rowKey,
int... row)
Inits a new DefaultRow object by row key and an array of
int values. |
|
DefaultRow(RowKey rowKey,
List<DataCell> row)
Inits a new DefaultRow object by row id and an array of
DataCells. |
|
DefaultRow(RowKey rowKey,
String... row)
Inits a new DefaultRow object by row key and an array of
String values. |
|
DefaultRow(String rowId,
DataCell... row)
Inits a new DefaultRow object by row id and an array of
DataCells. |
|
DefaultRow(String rowId,
DataRow row)
Creates an new row, using the data of the specified row, and overwrites the row key with the given new one. |
|
DefaultRow(String rowId,
double... row)
Inits a new DefaultRow object by row ID and an array of
double values. |
|
DefaultRow(String rowId,
int... row)
Inits a new DefaultRow object by row id and an array of
int values. |
|
DefaultRow(String rowId,
List<DataCell> row)
Inits a new DefaultRow object by row id and an array of
DataCells. |
|
DefaultRow(String rowId,
String... row)
Inits a new DefaultRow object by row id and an array of
String values. |
|
| Method Summary | |
|---|---|
boolean |
equals(Object obj)
A row is equal to another one if the key and all cells are equal. |
DataCell |
getCell(int index)
Returns the DataCell at the provided index within this row. |
RowKey |
getKey()
Returns the row key. |
int |
getNumCells()
Returns the length of this row, that is the number of columns of the DataTable (not including the row key). |
int |
hashCode()
|
Iterator<DataCell> |
iterator()
|
String |
toString()
Get a string representing this row, i.e. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public DefaultRow(RowKey rowKey,
DataCell... row)
DefaultRow object by row key and an array of
DataCells. The content of the argument array is copied.
rowKey - A RowKey containing a row Id.row - An array containing the actual data of this row.
IllegalArgumentException - if the rowKey or
row or one of its cell is null.
public DefaultRow(String rowId,
DataCell... row)
DefaultRow object by row id and an array of
DataCells. The content of the argument array is copied.
rowId - A String containing a row Id.row - An array containing the actual data of this row.
NullPointerException - if the specified rowID is null
NullPointerException - if row or one of its
cells is null.
public DefaultRow(String rowId,
List<DataCell> row)
DefaultRow object by row id and an array of
DataCells. The content of the argument array is copied.
rowId - a String containing a row Idrow - a list containing the actual data of this row
NullPointerException - if the specified rowID is null
NullPointerException - if row or one of its
cells is null.
public DefaultRow(RowKey rowKey,
List<DataCell> row)
DefaultRow object by row id and an array of
DataCells. The content of the argument array is copied.
rowKey - a RowKey containing a unique row Idrow - a list containing the actual data of this row
NullPointerException - if the specified row key is
null
NullPointerException - if row or one of its
cells is null.
public DefaultRow(RowKey rowKey,
double... row)
DefaultRow object by row key and an array of
double values.
rowKey - A RowKey containing a unique row Id.row - An array containing the actual data of this row.
NullPointerException - if the rowKey or
row is null.
public DefaultRow(String rowId,
double... row)
DefaultRow object by row ID and an array of
double values.
rowId - to be wrapped in a RowKey objectrow - the values in the row
NullPointerException - As soon as the other constructor does.DefaultRow(RowKey, double[])
public DefaultRow(String rowId,
int... row)
DefaultRow object by row id and an array of
int values.
Checks if none of the arguments is null.
rowId - a String containing a unique row Id.row - an array containing the actual data of this row.
NullPointerException - if the rowKey or
row is null.
public DefaultRow(RowKey rowKey,
int... row)
DefaultRow object by row key and an array of
int values.
Checks if none of the arguments is null.
rowKey - a RowKey containing a unique row Id.row - an array containing the actual data of this row.
NullPointerException - if the rowKey or
row is null.
public DefaultRow(String rowId,
String... row)
DefaultRow object by row id and an array of
String values.
rowId - A String containing a unique row Id.row - An array containing the actual data of this row.
NullPointerException - if the rowId or
row or one of its strings is null.
public DefaultRow(RowKey rowKey,
String... row)
DefaultRow object by row key and an array of
String values.
rowKey - a RowKey containing a unique row Idrow - an array containing the actual data of this row
NullPointerException - if the rowId or
row or one of its strings is null.
public DefaultRow(String rowId,
DataRow row)
rowId - the row id to create the new row key.row - The row to copy.
IllegalArgumentException - If the key or one of the row's cells
is null.
NullPointerException - If the row is null.
public DefaultRow(RowKey key,
DataRow row)
key - The new row's key.row - The row to copy.
IllegalArgumentException - If the key or one of the row's cells
is null.
NullPointerException - If the row is null.| Method Detail |
|---|
public final int getNumCells()
getNumCells in interface DataRowpublic final RowKey getKey()
getKey in interface DataRowpublic final DataCell getCell(int index)
DataCell at the provided index within this row.
getCell in interface DataRowindex - the index of the cell to retrieve (indices start from 0)
DataCell at the given indexpublic Iterator<DataCell> iterator()
iterator in interface Iterable<DataCell>public String toString()
toString in class Objectpublic boolean equals(Object obj)
equals in class Objectpublic int hashCode()
hashCode in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||