Package org.apache.hop.pipeline
Class RowProducer
- java.lang.Object
-
- org.apache.hop.pipeline.RowProducer
-
public class RowProducer extends Object
Allows you to "Inject" rows into a transform.
-
-
Constructor Summary
Constructors Constructor Description RowProducer(ITransform transform, IRowSet rowSet)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidfinished()Signal that we are done producing rows.IRowSetgetRowSet()ITransformgetTransform()voidputRow(IRowMeta rowMeta, Object[] row)Puts a row into the underlying row set.booleanputRow(IRowMeta rowMeta, Object[] row, boolean block)Puts a row on to the underlying row set, optionally blocking until the row can be successfully put.booleanputRowWait(IRowMeta rowMeta, Object[] rowData, long time, TimeUnit tu)voidsetRowSet(IRowSet rowSet)voidsetTransform(ITransform transform)
-
-
-
Constructor Detail
-
RowProducer
public RowProducer(ITransform transform, IRowSet rowSet)
-
-
Method Detail
-
putRow
public void putRow(IRowMeta rowMeta, Object[] row)
Puts a row into the underlying row set. This will block until the row is successfully added.- See Also:
putRow(IRowMeta, Object[], true)
-
putRow
public boolean putRow(IRowMeta 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:
IRowSet.putRow(IRowMeta, Object[])
-
finished
public void finished()
Signal that we are done producing rows. It will allow the transform to which this producer is attached to know that no more rows are forthcoming.
-
getRowSet
public IRowSet getRowSet()
- Returns:
- Returns the rowSet.
-
setRowSet
public void setRowSet(IRowSet rowSet)
- Parameters:
rowSet- The rowSet to set.
-
getTransform
public ITransform getTransform()
- Returns:
- Returns the ITransform.
-
setTransform
public void setTransform(ITransform transform)
- Parameters:
transform- The ITransform to set.
-
-