public class BoilerpipePipelet extends ATransformationPipelet
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
ENCODING_ATTRIBUTE_PROPERTY
Name of the property that contains the attribute with the encoding of the input attachment.
|
static java.lang.String |
ENCODING_PROPERTY
Name of the property that contains the encoding of the input attachment, fallback for
ENCODING_ATTRIBUTE_PROPERTY. |
static java.lang.String |
FILTER_PROPERTY
Name of the property that contains the selected boilerpipe filter class.
|
_config, _log, ENCODING_ATTACHMENT, ENCODING_CHARSET, PROP_INPUT_NAME, PROP_INPUT_TYPE, PROP_OUTPUT_NAME, PROP_OUTPUT_TYPE, PROP_OUTPUT_VALUE_TYPE| Constructor and Description |
|---|
BoilerpipePipelet() |
| Modifier and Type | Method and Description |
|---|---|
void |
configure(AnyMap configuration)
set configuration of pipelet. called once after instantiation before the pipelet is actually used in a workflow.
|
java.lang.String[] |
process(Blackboard blackboard,
java.lang.String[] recordIds)
process given records.
|
getInputName, getInputStream, getInputType, getOutputName, getOutputType, getOutputValueType, isReadFromAttribute, isStoreInAttribute, readInput, readStringInput, storeResult, storeResult, storeResult, storeResultspublic static final java.lang.String ENCODING_ATTRIBUTE_PROPERTY
public static final java.lang.String ENCODING_PROPERTY
ENCODING_ATTRIBUTE_PROPERTY.public static final java.lang.String FILTER_PROPERTY
public void configure(AnyMap configuration) throws ProcessingException
ATransformationPipeletconfigure in interface Pipeletconfigure in class ATransformationPipeletconfiguration - 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
Pipeletblackboard - Blackboard holding and managing the records.recordIds - Ids of records to process.ProcessingException - error during processing.