SMILA (incubation) API documentation

org.eclipse.smila.solr.index
Class SolrIndexPipelet

java.lang.Object
  extended by org.eclipse.smila.solr.index.SolrIndexPipelet
All Implemented Interfaces:
Pipelet

public class SolrIndexPipelet
extends java.lang.Object
implements Pipelet

SolrIndexPipelet class.

Author:
pwissel

Constructor Summary
SolrIndexPipelet()
          Constructor.
 
Method Summary
 void configure(AnyMap configuration)
          set configuration of pipelet.
 SolrServerManager getSolrManager()
          Get SolrManager.
 java.lang.String[] process(Blackboard blackboard, java.lang.String[] recordIds)
          process records on Blackboard service.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SolrIndexPipelet

public SolrIndexPipelet()
Constructor.

Method Detail

configure

public void configure(AnyMap configuration)
               throws ProcessingException
set configuration of pipelet. called once after instantiation before the pipelet is actually used in a workflow.

Specified by:
configure in interface Pipelet
Parameters:
configuration - configuration of pipelet.
Throws:
ProcessingException - configuration is not applicable for pipelet (missing properties, wrong datatypes)
See Also:
org.eclipse.smila.processing.IPipelet#configure(org.eclipse.smila.processing.configuration.PipeletConfiguration)

process

public java.lang.String[] process(Blackboard blackboard,
                                  java.lang.String[] recordIds)
                           throws ProcessingException
process records on Blackboard service.

Specified by:
process in interface Pipelet
Parameters:
blackboard - Blackboard service managing the records.
recordIds - Ids of records to process.
Returns:
Ids of result records. By default this should be the same as the passed in recordIds unless there is a specific reason not to do so. This is especially true for SearchPiplets.
Throws:
ProcessingException - error during processing.
See Also:
org.eclipse.smila.processing.Pipelet#process(org.eclipse.smila.blackboard.Blackboard, org.eclipse.smila.datamodel.id.String[])

getSolrManager

public SolrServerManager getSolrManager()
Get SolrManager.

Returns:
the SolrManager.

SMILA (incubation) API documentation