Codota Logo
StreamExecutionEnvironment.getMaxParallelism
Code IndexAdd Codota to your IDE (free)

How to use
getMaxParallelism
method
in
org.apache.flink.streaming.api.environment.StreamExecutionEnvironment

Best Java code snippets using org.apache.flink.streaming.api.environment.StreamExecutionEnvironment.getMaxParallelism (Showing top 3 results out of 315)

  • Common ways to obtain StreamExecutionEnvironment
private void myMethod () {
StreamExecutionEnvironment s =
  • Codota IconStreamExecutionEnvironment.getExecutionEnvironment()
  • Codota IconStreamExecutionEnvironment.createLocalEnvironment()
  • Smart code suggestions by Codota
}
origin: org.apache.beam/beam-runners-flink_2.11

@Test
public void shouldSetMaxParallelismStreaming() {
 FlinkPipelineOptions options = PipelineOptionsFactory.as(FlinkPipelineOptions.class);
 options.setRunner(TestFlinkRunner.class);
 options.setMaxParallelism(42);
 StreamExecutionEnvironment sev =
   FlinkExecutionEnvironments.createStreamExecutionEnvironment(
     options, Collections.emptyList());
 assertThat(options.getMaxParallelism(), is(42));
 assertThat(sev.getMaxParallelism(), is(42));
}
origin: org.apache.beam/beam-runners-flink_2.11

try {
 int parallelism =
   context.getExecutionEnvironment().getMaxParallelism() > 0
     ? context.getExecutionEnvironment().getMaxParallelism()
     : context.getExecutionEnvironment().getParallelism();
 UnboundedSourceWrapperNoValueWithRecordId<T, ?> sourceWrapper =
origin: org.apache.beam/beam-runners-flink_2.11

try {
 int parallelism =
   context.getExecutionEnvironment().getMaxParallelism() > 0
     ? context.getExecutionEnvironment().getMaxParallelism()
     : context.getExecutionEnvironment().getParallelism();
 UnboundedSourceWrapper<T, ?> sourceWrapper =
org.apache.flink.streaming.api.environmentStreamExecutionEnvironmentgetMaxParallelism

Javadoc

Gets the maximum degree of parallelism defined for the program.

The maximum degree of parallelism specifies the upper limit for dynamic scaling. It also defines the number of key groups used for partitioned state.

Popular methods of StreamExecutionEnvironment

  • execute
  • getExecutionEnvironment
    Creates an execution environment that represents the context in which the program is currently execu
  • addSource
    Ads a data source with a custom type information thus opening a DataStream. Only in very special cas
  • getConfig
    Gets the config object.
  • enableCheckpointing
    Enables checkpointing for the streaming job. The distributed state of the streaming dataflow will be
  • setStreamTimeCharacteristic
    Sets the time characteristic for all streams create from this environment, e.g., processing time, ev
  • setParallelism
    Sets the parallelism for operations executed through this environment. Setting a parallelism of x he
  • fromElements
    Creates a new data stream that contains the given elements. The elements must all be of the same typ
  • setStateBackend
    Sets the state backend that describes how to store and checkpoint operator state. It defines both wh
  • createLocalEnvironment
    Creates a LocalStreamEnvironment. The local execution environment will run the program in a multi-th
  • fromCollection
    Creates a data stream from the given iterator.Because the iterator will remain unmodified until the
  • getCheckpointConfig
    Gets the checkpoint config, which defines values like checkpoint interval, delay between checkpoints
  • fromCollection,
  • getCheckpointConfig,
  • getParallelism,
  • getStreamGraph,
  • setRestartStrategy,
  • socketTextStream,
  • readTextFile,
  • generateSequence,
  • clean,
  • getStreamTimeCharacteristic

Popular in Java

  • Parsing JSON documents to java classes using gson
  • scheduleAtFixedRate (ScheduledExecutorService)
  • findViewById (Activity)
  • getSupportFragmentManager (FragmentActivity)
    Return the FragmentManager for interacting with fragments associated with this activity.
  • ResultSet (java.sql)
    An interface for an object which represents a database table entry, returned as the result of the qu
  • Queue (java.util)
    A collection designed for holding elements prior to processing. Besides basic java.util.Collection o
  • Executor (java.util.concurrent)
    An object that executes submitted Runnable tasks. This interface provides a way of decoupling task s
  • TimeUnit (java.util.concurrent)
    A TimeUnit represents time durations at a given unit of granularity and provides utility methods to
  • Servlet (javax.servlet)
    Defines methods that all servlets must implement.A servlet is a small Java program that runs within
  • IsNull (org.hamcrest.core)
    Is the value null?
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now