Package org.pentaho.di.trans
Class RowProducer
- java.lang.Object
-
- org.pentaho.di.trans.RowProducer
-
public class RowProducer extends Object
Allows you to "Inject" rows into a step.- Author:
- Matt
-
-
Constructor Summary
Constructors Constructor Description RowProducer(StepInterface stepInterface, org.pentaho.di.core.RowSet rowSet)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidfinished()Signal that we are done producing rows.org.pentaho.di.core.RowSetgetRowSet()StepInterfacegetStepInterface()voidputRow(org.pentaho.di.core.row.RowMetaInterface rowMeta, Object[] row)Puts a row into the underlying row set.booleanputRow(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.booleanputRowWait(org.pentaho.di.core.row.RowMetaInterface rowMeta, Object[] rowData, long time, TimeUnit tu)voidsetRowSet(org.pentaho.di.core.RowSet rowSet)voidsetStepInterface(StepInterface stepInterface)
-
-
-
Constructor Detail
-
RowProducer
public RowProducer(StepInterface stepInterface, org.pentaho.di.core.RowSet rowSet)
-
-
Method Detail
-
putRow
public void putRow(org.pentaho.di.core.row.RowMetaInterface rowMeta, Object[] row)Puts a row into the underlying row set. This will block until the row is successfully added.- See Also:
putRow(RowMetaInterface, Object[], true)
-
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
blockis 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
public StepInterface getStepInterface()
- Returns:
- Returns the stepInterface.
-
setStepInterface
public void setStepInterface(StepInterface stepInterface)
- Parameters:
stepInterface- The stepInterface to set.
-
-