Tabnine Logo
ExecutionConfig.getParallelism
Code IndexAdd Tabnine to your IDE (free)

How to use
getParallelism
method
in
org.apache.flink.api.common.ExecutionConfig

Best Java code snippets using org.apache.flink.api.common.ExecutionConfig.getParallelism (Showing top 16 results out of 315)

origin: apache/flink

/**
 * Gets the parallelism with which operation are executed by default.
 * Operations can individually override this value to use a specific
 * parallelism.
 *
 * @return The parallelism used by operations, unless they override that
 * value.
 */
public int getParallelism() {
  return config.getParallelism();
}
origin: apache/flink

/**
 * Gets the parallelism with which operation are executed by default. Operations can
 * individually override this value to use a specific parallelism via
 * {@link Operator#setParallelism(int)}. Other operations may need to run with a different
 * parallelism - for example calling
 * {@link DataSet#reduce(org.apache.flink.api.common.functions.ReduceFunction)} over the entire
 * set will insert eventually an operation that runs non-parallel (parallelism of one).
 *
 * @return The parallelism used by operations, unless they override that value. This method
 *         returns {@link ExecutionConfig#PARALLELISM_DEFAULT}, if the environment's default parallelism should be used.
 */
public int getParallelism() {
  return config.getParallelism();
}
origin: apache/flink

JobGraph validateGraph() {
  JobGraph jobGraph = LAST_SUBMITTED_JOB_GRAPH_REFERENCE.getAndSet(null);
  Assert.assertArrayEquals(PROG_ARGS, ParameterProgram.actualArguments);
  Assert.assertEquals(PARALLELISM, getExecutionConfig(jobGraph).getParallelism());
  return jobGraph;
}
origin: apache/flink

JobGraph validateDefaultGraph() {
  JobGraph jobGraph = LAST_SUBMITTED_JOB_GRAPH_REFERENCE.getAndSet(null);
  Assert.assertEquals(0, ParameterProgram.actualArguments.length);
  Assert.assertEquals(ExecutionConfig.PARALLELISM_DEFAULT, getExecutionConfig(jobGraph).getParallelism());
  return jobGraph;
}
origin: apache/flink

@Test
public void testConfigurationOfParallelism() {
  ExecutionConfig config = new ExecutionConfig();
  // verify explicit change in parallelism
  int parallelism = 36;
  config.setParallelism(parallelism);
  assertEquals(parallelism, config.getParallelism());
  // verify that parallelism is reset to default flag value
  parallelism = ExecutionConfig.PARALLELISM_DEFAULT;
  config.setParallelism(parallelism);
  assertEquals(parallelism, config.getParallelism());
}
origin: apache/flink

public ArchivedExecutionConfig(ExecutionConfig ec) {
  executionMode = ec.getExecutionMode().name();
  if (ec.getRestartStrategy() != null) {
    restartStrategyDescription = ec.getRestartStrategy().getDescription();
  } else {
    restartStrategyDescription = "default";
  }
  parallelism = ec.getParallelism();
  objectReuseEnabled = ec.isObjectReuseEnabled();
  if (ec.getGlobalJobParameters() != null
      && ec.getGlobalJobParameters().toMap() != null) {
    globalJobParameters = ec.getGlobalJobParameters().toMap();
  } else {
    globalJobParameters = Collections.emptyMap();
  }
}
origin: apache/flink

assertEquals(objectReuseEnabled, copy1.isObjectReuseEnabled());
assertEquals(sysoutLoggingEnabled, copy1.isSysoutLoggingEnabled());
assertEquals(parallelism, copy1.getParallelism());
origin: DTStack/flinkx

/**
 * Gets the parallelism with which operation are executed by default. Operations can
 * individually override this value to use a specific parallelism via
 * {@link Operator#setParallelism(int)}. Other operations may need to run with a different
 * parallelism - for example calling
 * {@link DataSet#reduce(org.apache.flink.api.common.functions.ReduceFunction)} over the entire
 * set will insert eventually an operation that runs non-parallel (parallelism of one).
 *
 * @return The parallelism used by operations, unless they override that value. This method
 *         returns {@link ExecutionConfig#PARALLELISM_DEFAULT}, if the environment's default parallelism should be used.
 */
public int getParallelism() {
  return config.getParallelism();
}
origin: DTStack/flinkx

/**
 * Gets the parallelism with which operation are executed by default.
 * Operations can individually override this value to use a specific
 * parallelism.
 *
 * @return The parallelism used by operations, unless they override that
 * value.
 */
public int getParallelism() {
  return config.getParallelism();
}
origin: org.apache.flink/flink-streaming-java_2.11

/**
 * Gets the parallelism with which operation are executed by default.
 * Operations can individually override this value to use a specific
 * parallelism.
 *
 * @return The parallelism used by operations, unless they override that
 * value.
 */
public int getParallelism() {
  return config.getParallelism();
}
origin: org.apache.flink/flink-streaming-java_2.10

/**
 * Gets the parallelism with which operation are executed by default.
 * Operations can individually override this value to use a specific
 * parallelism.
 *
 * @return The parallelism used by operations, unless they override that
 * value.
 */
public int getParallelism() {
  return config.getParallelism();
}
origin: org.apache.flink/flink-streaming-java

/**
 * Gets the parallelism with which operation are executed by default.
 * Operations can individually override this value to use a specific
 * parallelism.
 *
 * @return The parallelism used by operations, unless they override that
 * value.
 */
public int getParallelism() {
  return config.getParallelism();
}
origin: org.apache.flink/flink-java

/**
 * Gets the parallelism with which operation are executed by default. Operations can
 * individually override this value to use a specific parallelism via
 * {@link Operator#setParallelism(int)}. Other operations may need to run with a different
 * parallelism - for example calling
 * {@link DataSet#reduce(org.apache.flink.api.common.functions.ReduceFunction)} over the entire
 * set will insert eventually an operation that runs non-parallel (parallelism of one).
 *
 * @return The parallelism used by operations, unless they override that value. This method
 *         returns {@link ExecutionConfig#PARALLELISM_DEFAULT}, if the environment's default parallelism should be used.
 */
public int getParallelism() {
  return config.getParallelism();
}
origin: com.alibaba.blink/flink-java

/**
 * Gets the parallelism with which operation are executed by default. Operations can
 * individually override this value to use a specific parallelism via
 * {@link Operator#setParallelism(int)}. Other operations may need to run with a different
 * parallelism - for example calling
 * {@link DataSet#reduce(org.apache.flink.api.common.functions.ReduceFunction)} over the entire
 * set will insert eventually an operation that runs non-parallel (parallelism of one).
 *
 * @return The parallelism used by operations, unless they override that value. This method
 *         returns {@link ExecutionConfig#PARALLELISM_DEFAULT}, if the environment's default parallelism should be used.
 */
public int getParallelism() {
  return config.getParallelism();
}
origin: org.apache.flink/flink-core

public ArchivedExecutionConfig(ExecutionConfig ec) {
  executionMode = ec.getExecutionMode().name();
  if (ec.getRestartStrategy() != null) {
    restartStrategyDescription = ec.getRestartStrategy().getDescription();
  } else {
    restartStrategyDescription = "default";
  }
  parallelism = ec.getParallelism();
  objectReuseEnabled = ec.isObjectReuseEnabled();
  if (ec.getGlobalJobParameters() != null
      && ec.getGlobalJobParameters().toMap() != null) {
    globalJobParameters = ec.getGlobalJobParameters().toMap();
  } else {
    globalJobParameters = Collections.emptyMap();
  }
}
origin: com.alibaba.blink/flink-core

public ArchivedExecutionConfig(ExecutionConfig ec) {
  executionMode = ec.getExecutionMode().name();
  if (ec.getRestartStrategy() != null) {
    restartStrategyDescription = ec.getRestartStrategy().getDescription();
  } else {
    restartStrategyDescription = "default";
  }
  parallelism = ec.getParallelism();
  objectReuseEnabled = ec.isObjectReuseEnabled();
  if (ec.getGlobalJobParameters() != null
      && ec.getGlobalJobParameters().toMap() != null) {
    globalJobParameters = ec.getGlobalJobParameters().toMap();
  } else {
    globalJobParameters = Collections.emptyMap();
  }
}
org.apache.flink.api.commonExecutionConfiggetParallelism

Javadoc

Gets the parallelism with which operation are executed by default. Operations can individually override this value to use a specific parallelism. Other operations may need to run with a different parallelism - for example calling a reduce operation over the entire data set will involve an operation that runs with a parallelism of one (the final reduce to the single result value).

Popular methods of ExecutionConfig

  • <init>
  • isObjectReuseEnabled
    Returns whether object reuse has been enabled or disabled. @see #enableObjectReuse()
  • disableSysoutLogging
    Disables the printing of progress update messages to System.out
  • getAutoWatermarkInterval
    Returns the interval of the automatic watermark emission.
  • setGlobalJobParameters
    Register a custom, serializable user configuration object.
  • enableObjectReuse
    Enables reusing objects that Flink internally uses for deserialization and passing data to user-code
  • setAutoWatermarkInterval
    Sets the interval of the automatic watermark emission. Watermarks are used throughout the streaming
  • disableObjectReuse
    Disables reusing objects that Flink internally uses for deserialization and passing data to user-cod
  • getRestartStrategy
    Returns the restart strategy which has been set for the current job.
  • isSysoutLoggingEnabled
    Gets whether progress update messages should be printed to System.out
  • registerKryoType
    Registers the given type with the serialization stack. If the type is eventually serialized as a POJ
  • registerTypeWithKryoSerializer
    Registers the given Serializer via its class as a serializer for the given type at the KryoSerialize
  • registerKryoType,
  • registerTypeWithKryoSerializer,
  • setRestartStrategy,
  • addDefaultKryoSerializer,
  • getGlobalJobParameters,
  • getNumberOfExecutionRetries,
  • getRegisteredKryoTypes,
  • setParallelism,
  • getDefaultKryoSerializerClasses

Popular in Java

  • Running tasks concurrently on multiple threads
  • setRequestProperty (URLConnection)
  • getContentResolver (Context)
  • startActivity (Activity)
  • Connection (java.sql)
    A connection represents a link from a Java application to a database. All SQL statements and results
  • TimeZone (java.util)
    TimeZone represents a time zone offset, and also figures out daylight savings. Typically, you get a
  • ReentrantLock (java.util.concurrent.locks)
    A reentrant mutual exclusion Lock with the same basic behavior and semantics as the implicit monitor
  • Notification (javax.management)
  • Options (org.apache.commons.cli)
    Main entry-point into the library. Options represents a collection of Option objects, which describ
  • Loader (org.hibernate.loader)
    Abstract superclass of object loading (and querying) strategies. This class implements useful common
  • Best IntelliJ plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

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