|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.knime.base.data.append.row.ResortedCellsRow
public class ResortedCellsRow
A row that takes a base row and re-sorts the cells in it according to an
int[]
parameter passed in the constructor.
Constructor Summary | |
---|---|
protected |
ResortedCellsRow(DataRow row,
int[] sort)
Creates new row with row as underlying base row and
sort the new sorting scheme. |
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 |
---|
protected ResortedCellsRow(DataRow row, int[] sort)
row
as underlying base row and
sort
the new sorting scheme. That is the old
i
-th entry becomes entry number sort[i]
.
row
- the base rowsort
- the re-sorting
IllegalArgumentException
- if the lengths of arrays don't match
NullPointerException
- if either argument is null
Method Detail |
---|
public int getNumCells()
getNumCells
in interface DataRow
public RowKey getKey()
getKey
in interface DataRow
public DataCell getCell(int index)
DataCell
at the provided index within this row.
getCell
in interface DataRow
index
- 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 |