Package org.apache.beam.runners.spark
Class SparkPipelineResult
java.lang.Object
org.apache.beam.runners.spark.SparkPipelineResult
- All Implemented Interfaces:
PipelineResult
- Direct Known Subclasses:
SparkRunnerDebugger.DebugSparkPipelineResult
Represents a Spark pipeline execution result.
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.apache.beam.sdk.PipelineResult
PipelineResult.State -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract PipelineResult.StateawaitTermination(Duration duration) cancel()Cancels the pipeline execution.getState()Retrieves the current state of the pipeline execution.metrics()Returns the object to access metrics from the pipeline.protected abstract voidstop()Waits until the pipeline finishes and returns the final status.waitUntilFinish(Duration duration) Waits until the pipeline finishes and returns the final status.
-
Method Details
-
stop
protected abstract void stop() -
awaitTermination
protected abstract PipelineResult.State awaitTermination(Duration duration) throws TimeoutException, ExecutionException, InterruptedException -
getState
Description copied from interface:PipelineResultRetrieves the current state of the pipeline execution.- Specified by:
getStatein interfacePipelineResult- Returns:
- the
PipelineResult.Staterepresenting the state of this pipeline.
-
waitUntilFinish
Description copied from interface:PipelineResultWaits until the pipeline finishes and returns the final status.- Specified by:
waitUntilFinishin interfacePipelineResult- Returns:
- The final state of the pipeline.
-
waitUntilFinish
Description copied from interface:PipelineResultWaits until the pipeline finishes and returns the final status. It times out after the given duration.- Specified by:
waitUntilFinishin interfacePipelineResult- 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.
-
metrics
Description copied from interface:PipelineResultReturns the object to access metrics from the pipeline.- Specified by:
metricsin interfacePipelineResult
-
cancel
Description copied from interface:PipelineResultCancels the pipeline execution.- Specified by:
cancelin interfacePipelineResult- Throws:
IOException- if there is a problem executing the cancel request.
-