|
SMILA 1.0 API documentation | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.eclipse.smila.processing.pipelets.FilterPipelet
public class FilterPipelet
Pipelet to filter records according to some expression.
If the configured expression filterExpression matches the value (simple String) in the configure metadata attribute filterAttribute the record is written to the output. Otherwise the record is ignored. The configuration has to be part of the "_parameters" attribute in each record or is contained in the pipeline definition.
E.g.
"_parameters": {
"filterAttribute": "_recordid",
"filterExpression": "[0-5]{1}"
}
matches only records with the record id between 0 and 5.
| Constructor Summary | |
|---|---|
FilterPipelet()
|
|
| Method Summary | |
|---|---|
void |
configure(AnyMap configuration)
set configuration of pipelet. |
java.lang.String[] |
process(Blackboard blackboard,
java.lang.String[] recordIds)
process given records. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public FilterPipelet()
| Method Detail |
|---|
public void configure(AnyMap configuration)
throws ProcessingException
configure in interface Pipeletconfiguration - configuration of pipelet.
ProcessingException - configuration is not applicable for pipelet (missing properties, wrong datatypes)
public java.lang.String[] process(Blackboard blackboard,
java.lang.String[] recordIds)
throws ProcessingException
process in interface Pipeletblackboard - Blackboard holding and managing the records.recordIds - Ids of records to process.
ProcessingException - error during processing.
|
SMILA 1.0 API documentation | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||