|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.knime.core.data.RowIterator
org.knime.base.data.append.row.AppendedRowsIterator
public class AppendedRowsIterator
Iterator over an
AppendedRowsTable
.
Nested Class Summary | |
---|---|
static class |
AppendedRowsIterator.RuntimeCanceledExecutionException
Runtime exception that's thrown when the execution monitor's ExecutionMonitor.checkCanceled() method throws a
CanceledExecutionException . |
Constructor Summary | |
---|---|
AppendedRowsIterator(DataTable[] tables,
DataTableSpec spec,
String suffix)
Creates new iterator of tables following spec . |
|
AppendedRowsIterator(DataTable[] tables,
DataTableSpec spec,
String suffix,
ExecutionMonitor exec,
int totalRowCount)
Creates new iterator of tables following spec . |
Method Summary | |
---|---|
Set<RowKey> |
getDuplicateHash()
Deprecated. Use the key set of getDuplicateNameMap() instead. |
Map<RowKey,RowKey> |
getDuplicateNameMap()
Get a map of keys in the resulting table to the keys in (any of) the input tables, typically elements such as below. |
int |
getNrRowsSkipped()
Get the number of rows that have been skipped due to duplicate row keys. |
boolean |
hasNext()
Returns true if there are more rows and false
otherwise. |
DataRow |
next()
Returns the next DataRow . |
Methods inherited from class org.knime.core.data.RowIterator |
---|
remove |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
AppendedRowsIterator(DataTable[] tables, DataTableSpec spec, String suffix)
tables
following spec
.
tables
- to iterate overspec
- table spec of underlying table (used to determine missing
columns and order)suffix
- the suffix to append to duplicate rows or null
to skip duplicates in this iterator (prints warning)AppendedRowsIterator(DataTable[] tables, DataTableSpec spec, String suffix, ExecutionMonitor exec, int totalRowCount)
tables
following spec
.
The iterator may throw an exception in next.
tables
- to iterate overspec
- table spec of underlying table (used to determine missing
columns and order)suffix
- the suffix to append to duplicate rows or null
to skip duplicates in this iterator (prints warning)exec
- for progress/cancel, may be null
totalRowCount
- the total row count or negative if unknownMethod Detail |
---|
public boolean hasNext()
true
if there are more rows and false
otherwise.
hasNext
in interface Iterator<DataRow>
hasNext
in class RowIterator
true
if the iterator has more elements, otherwise
false
RowIterator.next()
public DataRow next()
DataRow
.
next
in interface Iterator<DataRow>
next
in class RowIterator
DataTable
public int getNrRowsSkipped()
@Deprecated public Set<RowKey> getDuplicateHash()
getDuplicateNameMap()
instead.
public Map<RowKey,RowKey> getDuplicateNameMap()
Key | Value |
---|---|
Row1 | Row1 |
Row2 | Row2 |
Row1_dup | Row1 |
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |