Google Cloud Dataflow SDK for Java, version 1.9.1
Class InProcessPipelineRunner.InProcessPipelineResult
- java.lang.Object
-
- com.google.cloud.dataflow.sdk.runners.inprocess.InProcessPipelineRunner.InProcessPipelineResult
-
- All Implemented Interfaces:
- PipelineResult
- Enclosing class:
- InProcessPipelineRunner
public static class InProcessPipelineRunner.InProcessPipelineResult extends Object implements PipelineResult
The result of running aPipeline
with theInProcessPipelineRunner
.Throws
UnsupportedOperationException
for all methods.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface com.google.cloud.dataflow.sdk.PipelineResult
PipelineResult.State
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description PipelineResult.State
awaitCompletion()
Blocks until thePipeline
execution represented by thisInProcessPipelineRunner.InProcessPipelineResult
is complete, returning the terminal state.<T> AggregatorValues<T>
getAggregatorValues(Aggregator<?,T> aggregator)
Retrieves the current value of the providedAggregator
.PipelineResult.State
getState()
Retrieves the current state of the pipeline execution.
-
-
-
Method Detail
-
getState
public PipelineResult.State getState()
Description copied from interface:PipelineResult
Retrieves the current state of the pipeline execution.- Specified by:
getState
in interfacePipelineResult
- Returns:
- the
PipelineResult.State
representing the state of this pipeline.
-
getAggregatorValues
public <T> AggregatorValues<T> getAggregatorValues(Aggregator<?,T> aggregator) throws AggregatorRetrievalException
Description copied from interface:PipelineResult
Retrieves the current value of the providedAggregator
.- Specified by:
getAggregatorValues
in interfacePipelineResult
- Parameters:
aggregator
- theAggregator
to retrieve values for.- Returns:
- the current values of the
Aggregator
, which may be empty if there are no values yet. - Throws:
AggregatorRetrievalException
- if theAggregator
values could not be retrieved.
-
awaitCompletion
public PipelineResult.State awaitCompletion() throws Throwable
Blocks until thePipeline
execution represented by thisInProcessPipelineRunner.InProcessPipelineResult
is complete, returning the terminal state.If the pipeline terminates abnormally by throwing an exception, this will rethrow the exception. Future calls to
getState()
will returnPipelineResult.State.FAILED
.NOTE: if the
Pipeline
contains anunbounded
PCollection
, and thePipelineRunner
was created withInProcessPipelineOptions.isShutdownUnboundedProducersWithMaxWatermark()
set to false, this method will never return.See also
InProcessExecutor.awaitCompletion()
.- Throws:
Throwable
-
-