|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.knime.base.data.replace.ReplacedColumnsDataRow
public class ReplacedColumnsDataRow
| Constructor Summary | |
|---|---|
ReplacedColumnsDataRow(DataRow row,
DataCell[] newCells,
int[] columns)
Creates a new replaced column row. |
|
ReplacedColumnsDataRow(DataRow row,
DataCell newCell,
int column)
Convenience constructor that replaces one cell only. |
|
| Method Summary | |
|---|---|
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). |
Iterator<DataCell> |
iterator()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ReplacedColumnsDataRow(DataRow row,
DataCell[] newCells,
int[] columns)
row - the row to replace one or more columns innewCells - the new cellscolumns - at positions
IndexOutOfBoundsException - if one of the column indices is not
inside the row
NullPointerException - if the replace cell is null
public ReplacedColumnsDataRow(DataRow row,
DataCell newCell,
int column)
this(row, new DataCell[]{newCell}, new int[]{column});
.
row - the row to replace one column innewCell - the new cellcolumn - the column to be replaced| Method Detail |
|---|
public int getNumCells()
getNumCells in interface DataRowpublic RowKey getKey()
getKey in interface DataRowpublic 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>
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||