congrats Icon
New! Tabnine Pro 14-day free trial
Start a free trial
Tabnine Logo
StreamExecutionEnvironment.getMaxParallelism
Code IndexAdd Tabnine 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)

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

  • Making http requests using okhttp
  • compareTo (BigDecimal)
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • scheduleAtFixedRate (Timer)
  • GridBagLayout (java.awt)
    The GridBagLayout class is a flexible layout manager that aligns components vertically and horizonta
  • FileInputStream (java.io)
    An input stream that reads bytes from a file. File file = ...finally if (in != null) in.clos
  • FileOutputStream (java.io)
    An output stream that writes bytes to a file. If the output file exists, it can be replaced or appen
  • ResourceBundle (java.util)
    ResourceBundle is an abstract class which is the superclass of classes which provide Locale-specifi
  • ReentrantLock (java.util.concurrent.locks)
    A reentrant mutual exclusion Lock with the same basic behavior and semantics as the implicit monitor
  • JarFile (java.util.jar)
    JarFile is used to read jar entries and their associated data from jar files.
  • Top 17 PhpStorm Plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyStudentsTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now