SMILA 1.0 API documentation

org.eclipse.smila.processing.pipelets
Class SetValuePipelet

java.lang.Object
  extended by org.eclipse.smila.processing.pipelets.SetValuePipelet
All Implemented Interfaces:
Pipelet

public class SetValuePipelet
extends java.lang.Object
implements Pipelet

Sets an attribute value for every record.

Author:
Tobias Liefke

Constructor Summary
SetValuePipelet()
           
 
Method Summary
 void configure(AnyMap configuration)
          Save the configuration for later processing.
 java.lang.String[] process(Blackboard blackboard, java.lang.String[] recordIds)
          Set the value for all pipelets.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SetValuePipelet

public SetValuePipelet()
Method Detail

configure

public void configure(AnyMap configuration)
               throws ProcessingException
Save the configuration for later processing.

Specified by:
configure in interface Pipelet
Parameters:
configuration - configuration of pipelet.
Throws:
ProcessingException - configuration is not applicable for pipelet (missing properties, wrong datatypes)

process

public java.lang.String[] process(Blackboard blackboard,
                                  java.lang.String[] recordIds)
                           throws ProcessingException
Set the value for all pipelets.

Specified by:
process in interface Pipelet
Parameters:
blackboard - Blackboard holding and managing the records.
recordIds - Ids of records to process.
Returns:
Ids of records to be passed into the next pipelet. By default this should be the same as the passed in recordIds unless there is a specific (businesslogic) reason not to do so.
Throws:
ProcessingException - error during processing.

SMILA 1.0 API documentation