Class DirectRunner.DirectPipelineResult

  • All Implemented Interfaces:
    org.apache.beam.sdk.PipelineResult
    Enclosing class:
    DirectRunner

    public static class DirectRunner.DirectPipelineResult
    extends java.lang.Object
    implements org.apache.beam.sdk.PipelineResult
    The result of running a Pipeline with the DirectRunner.
    • Nested Class Summary

      • Nested classes/interfaces inherited from interface org.apache.beam.sdk.PipelineResult

        org.apache.beam.sdk.PipelineResult.State
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      org.apache.beam.sdk.PipelineResult.State cancel()  
      org.apache.beam.sdk.PipelineResult.State getState()  
      org.apache.beam.sdk.metrics.MetricResults metrics()  
      org.apache.beam.sdk.PipelineResult.State waitUntilFinish()
      .
      org.apache.beam.sdk.PipelineResult.State waitUntilFinish​(org.joda.time.Duration duration)
      .
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • getState

        public org.apache.beam.sdk.PipelineResult.State getState()
        Specified by:
        getState in interface org.apache.beam.sdk.PipelineResult
      • metrics

        public org.apache.beam.sdk.metrics.MetricResults metrics()
        Specified by:
        metrics in interface org.apache.beam.sdk.PipelineResult
      • waitUntilFinish

        public org.apache.beam.sdk.PipelineResult.State waitUntilFinish()
        .

        If the pipeline terminates abnormally by throwing an Exception, this will rethrow the original Exception. Future calls to getState() will return PipelineResult.State.FAILED.

        Specified by:
        waitUntilFinish in interface org.apache.beam.sdk.PipelineResult
      • cancel

        public org.apache.beam.sdk.PipelineResult.State cancel()
        Specified by:
        cancel in interface org.apache.beam.sdk.PipelineResult
      • waitUntilFinish

        public org.apache.beam.sdk.PipelineResult.State waitUntilFinish​(org.joda.time.Duration duration)
        .

        If the pipeline terminates abnormally by throwing an Exception, this will rethrow the original Exception. Future calls to getState() will return PipelineResult.State.FAILED.

        Specified by:
        waitUntilFinish in interface org.apache.beam.sdk.PipelineResult