Package com.kodexa.client.pipeline
Class Pipeline
- java.lang.Object
-
- com.kodexa.client.pipeline.Pipeline
-
- Direct Known Subclasses:
RemotePipeline
public class Pipeline extends Object
A Pipeline allows you to put together steps from a connector to a sink to enable re-use and encapsulation of steps.
-
-
Field Summary
Fields Modifier and Type Field Description protected Connector
connector
protected List<PipelineParameter>
parameters
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Pipeline
addParameter(String name, String value)
Pipeline
addStep(PipelineStep step)
Pipeline
addStep(Class stepClass, Options options)
Pipeline
addStep(String actionSlug, Options options)
static Pipeline
fromFolder(String folderPath, String filenameFilter, boolean recursive)
static Pipeline
fromInputStream(InputStream inputStream)
static Pipeline
fromText(String text)
Create a pipeline with a single document as input containing the content from this textstatic Pipeline
fromUrl(String url)
Pipeline
parameters(List<PipelineParameter> parameters)
PipelineContext
run()
Pipeline
setSink(Sink sink)
-
-
-
Field Detail
-
parameters
protected List<PipelineParameter> parameters
-
-
Method Detail
-
addStep
public Pipeline addStep(PipelineStep step)
-
parameters
public Pipeline parameters(List<PipelineParameter> parameters)
-
run
public PipelineContext run()
-
fromText
public static Pipeline fromText(String text)
Create a pipeline with a single document as input containing the content from this text- Parameters:
text
- The text to use as the content of the document- Returns:
- an instance of the pipeline
-
fromInputStream
public static Pipeline fromInputStream(InputStream inputStream)
-
fromFolder
public static Pipeline fromFolder(String folderPath, String filenameFilter, boolean recursive)
-
addParameter
public Pipeline addParameter(String name, String value)
-
-