Adds the specified pipeline as a child of this pipeline.
Adds the specified pipeline as a child of this pipeline.
The outgoing type of the child pipeline
The pipeline to add as a child
The added child pipeline
Retrieves the collection of children pipelines for the current pipeline.
Retrieves the collection of children pipelines for the current pipeline.
The collection of pipelines that are children to this pipeline
Closes the pipeline immediately.
Closes the pipeline immediately. No data is provided.
Closes the pipeline.
Closes the pipeline.
If true, should perform the closing action immediately rather than on the next data fed through the pipeline
Any data to be provided to the close function
Retrieves the current metadata at this stage in the pipeline.
Retrieves the current metadata at this stage in the pipeline.
The map of metadata
Retrieves the failure route of the current pipeline stage.
Retrieves the failure route of the current pipeline stage.
The pipeline to process the throwable from the failure
Filters the output of this pipeline instance.
Filters the output of this pipeline instance.
The function to use for filtering data (only true results will remain in output)
The resulting pipeline instance with the filtered data
Filters the output of this pipeline instance.
Filters the output of this pipeline instance.
The function to use for filtering data (only false results will remain in output)
The resulting pipeline instance with the filtered data
Maps the output of this pipeline instance to new values and then flattens the results.
Maps the output of this pipeline instance to new values and then flattens the results.
The resulting type of the new values
The function to use for mapping data to new values that will be flattened
The resulting pipeline instance with the mapped and flattened data
Applies the provided function to the output of this pipeline, returning nothing from the function.
Applies the provided function to the output of this pipeline, returning nothing from the function.
The function to apply
Maps the output of this pipeline instance to new values.
Maps the output of this pipeline instance to new values.
The resulting type of the new values
The function to use for mapping data to new values
The resulting pipeline instance with the mapped data
Inherits the close function of the pipeline.
Retrieves the metadata route of the current pipeline stage.
Retrieves the metadata route of the current pipeline stage.
The pipeline to process the metadata for the pipeline, containing the data and metadata as a tuple
Creates a new pipeline using the given operation.
Creates a new pipeline using the given operation. This is used to generate pipelines within the pipeline itself and can be overridden to generate a different kind of pipeline. It is recommended to override this method when subclassing pipeline.
The input type of the new pipeline
The output type of the new pipeline
The operation to provide to the new pipeline
The new pipeline
This implementation passes down the current pipeline's close function and metadata map.
Creates a new pipeline using the given operation.
Creates a new pipeline using the given operation. This is used to generate pipelines within the pipeline itself and can be overridden to generate a different kind of pipeline. It is recommended to override this method when subclassing pipeline.
The input type of the new pipeline
The output type of the new pipeline
The operation to provide to the new pipeline
The function used to close the new pipeline
The map of metadata to hold in the pipeline instance
The new pipeline
Applies a no-op on the current pipeline.
Applies a no-op on the current pipeline.
The pipeline after a no-op has been applied
The operation to apply to incoming data
Processes the provided data through this specific pipeline instance and all subsequent children of this pipeline instance.
Processes the provided data through this specific pipeline instance and all subsequent children of this pipeline instance. No parent pipeline instance will be used during the processing of the data.
The data to process
If successful, the transformed collection of data at this specific pipeline instance, otherwise the thrown exception
Transforms the pipeline into a future that will be evaluated once and then closes the underlying pipeline.
Transforms the pipeline into a future that will be evaluated once and then closes the underlying pipeline.
The future representing this pipeline
Transforms the output of this pipeline using the provided operation.
Transforms the output of this pipeline using the provided operation.
The resulting type of the output from the operation
The operation to use to transform the output of this pipeline instance
The resulting pipeline instance from applying the operation
Inherits the close function of the pipeline.
Unions this pipeline with another pipeline that has the same input such that input from either pipeline is used for both.
Unions this pipeline with another pipeline that has the same input such that input from either pipeline is used for both.
The other pipeline whose input to union together
The unioned pipeline
Unions this pipeline with another pipeline that has the same output such that output from either pipeline flows through the union.
Unions this pipeline with another pipeline that has the same output such that output from either pipeline flows through the union.
The other pipeline to whose output to union together
The unioned pipeline
Adds additional metadata by creating a new stage in the pipeline with the additional metadata merged with the existing metadata.
Adds additional metadata by creating a new stage in the pipeline with the additional metadata merged with the existing metadata.
The new metadata to add to future pipeline stages
The resulting pipeline instance with the updated metadata
Represents a pipeline of instructions used to perform a series of operations over an arbitrary collection of data.
The incoming data type
The outgoing data type