Overview

Extractors are converters aimed at transforming a single object into another object.Extractors usually extract some part of the input object to be used as a key later in the pipeline. Extractors must comply to following Java interface signature:

public interface Extractor<I, K> {
K extract(I input);
}


Script Extractor

Extract any content from input data using a custom scripting language. See DDC Extensibility (SDK) for more information. This extractor allows custom extension of the extraction, although you must consider the scripting language overhead in runtime.

PROPERTY

ID

DESCRIPTION

TYPE

REQUIRED

DEFAULT

EXAMPLES

ScriptscriptScript to extract input to outputStringYes

Languagelanguage

Language compatible with the JVM in which operations are written.

Note: the language pack must be installed in the system.

Script LanguageNogroovy

javascript

Select the  scripting language to be Javascript.

ParametersparametersScript optional parameters

Parameter List

No
param1=val1,val2;param2=va3
DependenciesdependenciesPath to external jars that will be added to the classloaderNoList of Paths
/home/acme/coyote.jar
Bootstrap scriptscript-bootstrapScript to execute when the step is initialized. Useful to initialize classesNoString

Echo Extractor

Extractor aimed at doing nothing but just copying input to output.

Fixed Extractor

Extract the same fixed key for all objects.

PROPERTY

ID

DESCRIPTION

REQUIRED

TYPE

KeykeyFixed key to use for all objectsYesString

Java Extractor

Extract selected properties from a Java object. It support nested properties if a property is not a primitive type.

PROPERTY

ID

DESCRIPTION

REQUIRED

TYPE

Paths

pathsPaths to extract the submap. Format outputKey=inputPathYes

Parameter List

Java Field Extractor

Extract a single property from a Java object. It support nested properties if a property is not a primitive type.

PROPERTY

ID

DESCRIPTION

REQUIRED

TYPE

Path

pathPath to extract the value from.YesString

Key Map Extractor

Extract a value from a Map. It support nested keys if the map contains submaps.

PROPERTY

ID

DESCRIPTION

REQUIRED

TYPE

Path

pathPath to extract the value from.YesString
DefaultdefaultDefault value if key doesn't exist.NoString

Map Extractor

Extract selected values from a Map. It support nested keys if the map contains submaps.

PROPERTY

ID

DESCRIPTION

REQUIRED

TYPE

Paths

pathsPaths to extract the submap. Format outputKey=inputPathYes

Parameter List