Search in sources :

Example 1 with JetPipelineOptions

use of org.apache.beam.runners.jet.JetPipelineOptions in project beam by apache.

the class AbstractParDoP method isCooperativenessAllowed.

private static Boolean isCooperativenessAllowed(SerializablePipelineOptions serializablePipelineOptions) {
    PipelineOptions pipelineOptions = serializablePipelineOptions.get();
    JetPipelineOptions jetPipelineOptions = pipelineOptions.as(JetPipelineOptions.class);
    return jetPipelineOptions.getJetProcessorsCooperative();
}
Also used : JetPipelineOptions(org.apache.beam.runners.jet.JetPipelineOptions) SerializablePipelineOptions(org.apache.beam.runners.core.construction.SerializablePipelineOptions) PipelineOptions(org.apache.beam.sdk.options.PipelineOptions) JetPipelineOptions(org.apache.beam.runners.jet.JetPipelineOptions)

Aggregations

SerializablePipelineOptions (org.apache.beam.runners.core.construction.SerializablePipelineOptions)1 JetPipelineOptions (org.apache.beam.runners.jet.JetPipelineOptions)1 PipelineOptions (org.apache.beam.sdk.options.PipelineOptions)1