PipelineStage
Represents a stage in the document processing pipeline.
Each pipeline stage takes an input of type I, processes it, and produces an output of type O. Pipeline stages can be chained together to form a complete processing pipeline.
Pipeline stages can also define hooks that are invoked after the stage completes processing, allowing for custom behavior to be executed at specific points in the pipeline.
Inheritors
Properties
Functions
Link copied to clipboard
Executes this pipeline stage with the given input and shared data.
Link copied to clipboard
Utility function to execute a pipeline stage that takes Unit as input.
Link copied to clipboard
Invokes the hook function for this stage, if one is defined.
Link copied to clipboard
Chains two pipeline stages together to form a new pipeline stage.
Link copied to clipboard
infix fun <A, B> PipelineStage<A, B>.thenOptionally(next: PipelineStage<B, B>?): PipelineStage<A, B>
Conditionally chains this pipeline stage with next if it is not null.