spdl.pipeline.defs¶
Overview¶
This module provides building block definitions for Pipeline
.
You can build a pipeline by creating a PipelineConfig
,
then passing it to spdl.pipeline.build_pipeline()
function.
The following step explains the steps to build a pipeline using the building blocks.
Instantiate a
SourceConfig
by providing aIterable
orAsyncIterable
.Using
Pipe()
,Aggregate()
orDisaggregate()
, instantiate a series ofPipeConfig
.Instantiate a
SinkConfig
.Pass the config objects created in the previous steps to
PipelineConfig
.Pass the
PipelineConfig
object tospdl.pipeline.build_pipeline()
function.
API Reference¶
Functions
Aggregate¶
Create a |
Disaggregate¶
Create a |
Pipe¶
Create a |
Classes
PipeConfig¶
A pipe configuration. |
PipelineConfig¶
A pipeline configuration. |
SinkConfig¶
A sink configuration. |
SourceConfig¶
A source configuration. |