Interface PipelineResult


  • public interface PipelineResult
    Result of Pipeline.run().

    This is often a job handle to an underlying data processing engine.

    • Method Detail

      • cancel

        PipelineResult.State cancel()
                             throws java.io.IOException
        Cancels the pipeline execution.
        Throws:
        java.io.IOException - if there is a problem executing the cancel request.
        java.lang.UnsupportedOperationException - if the runner does not support cancellation.
      • waitUntilFinish

        PipelineResult.State waitUntilFinish​(org.joda.time.Duration duration)
        Waits until the pipeline finishes and returns the final status. It times out after the given duration.
        Parameters:
        duration - The time to wait for the pipeline to finish. Provide a value less than 1 ms for an infinite wait.
        Returns:
        The final state of the pipeline or null on timeout.
        Throws:
        java.lang.UnsupportedOperationException - if the runner does not support waiting to finish with a timeout.
      • waitUntilFinish

        PipelineResult.State waitUntilFinish()
        Waits until the pipeline finishes and returns the final status.
        Returns:
        The final state of the pipeline.
        Throws:
        java.lang.UnsupportedOperationException - if the runner does not support waiting to finish.
      • metrics

        @Experimental(METRICS)
        MetricResults metrics()
        Returns the object to access metrics from the pipeline.
        Throws:
        java.lang.UnsupportedOperationException - if the runner doesn't support retrieving metrics.