Package org.pentaho.di.trans
Class RowProducer
java.lang.Object
org.pentaho.di.trans.RowProducer
Allows you to "Inject" rows into a step.
- Author:
- Matt
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
finished()
Signal that we are done producing rows.org.pentaho.di.core.RowSet
void
Puts a row into the underlying row set.boolean
Puts a row on to the underlying row set, optionally blocking until the row can be successfully put.boolean
putRowWait
(org.pentaho.di.core.row.RowMetaInterface rowMeta, Object[] rowData, long time, TimeUnit tu) void
setRowSet
(org.pentaho.di.core.RowSet rowSet) void
setStepInterface
(StepInterface stepInterface)
-
Constructor Details
-
RowProducer
-
-
Method Details
-
putRow
Puts a row into the underlying row set. This will block until the row is successfully added.- See Also:
-
putRow
public boolean putRow(org.pentaho.di.core.row.RowMetaInterface rowMeta, Object[] row, boolean block) Puts a row on to the underlying row set, optionally blocking until the row can be successfully put.- Returns:
- true if the row was successfully added to the rowset and false if this buffer was full. If
block
is true this will always return true. - See Also:
-
RowSet.putRow(RowMetaInterface, Object[])
-
putRowWait
public boolean putRowWait(org.pentaho.di.core.row.RowMetaInterface rowMeta, Object[] rowData, long time, TimeUnit tu) - See Also:
-
RowSet.putRowWait(RowMetaInterface, Object[], long, TimeUnit)
-
finished
public void finished()Signal that we are done producing rows. It will allow the step to which this producer is attached to know that no more rows are forthcoming. -
getRowSet
public org.pentaho.di.core.RowSet getRowSet()- Returns:
- Returns the rowSet.
-
setRowSet
public void setRowSet(org.pentaho.di.core.RowSet rowSet) - Parameters:
rowSet
- The rowSet to set.
-
getStepInterface
- Returns:
- Returns the stepInterface.
-
setStepInterface
- Parameters:
stepInterface
- The stepInterface to set.
-