Tabnine Logo
TaskInfo.getMaxNumberOfParallelSubtasks
Code IndexAdd Tabnine to your IDE (free)

How to use
getMaxNumberOfParallelSubtasks
method
in
org.apache.flink.api.common.TaskInfo

Best Java code snippets using org.apache.flink.api.common.TaskInfo.getMaxNumberOfParallelSubtasks (Showing top 8 results out of 315)

origin: apache/flink

@Override
public int getMaxNumberOfParallelSubtasks() {
  return taskInfo.getMaxNumberOfParallelSubtasks();
}
origin: apache/flink

taskInfo.getMaxNumberOfParallelSubtasks(),
taskInfo.getNumberOfParallelSubtasks(),
taskInfo.getIndexOfThisSubtask());
    operatorIdentifierText,
    keySerializer,
    taskInfo.getMaxNumberOfParallelSubtasks(),
    keyGroupRange,
    environment.getTaskKvStateRegistry(),
origin: apache/flink

int numKeyGroups = getEnvironment().getTaskInfo().getMaxNumberOfParallelSubtasks();
int numSubtasks = getEnvironment().getTaskInfo().getNumberOfParallelSubtasks();
int subtaskIndex = getEnvironment().getTaskInfo().getIndexOfThisSubtask();
origin: org.apache.flink/flink-core

@Override
public int getMaxNumberOfParallelSubtasks() {
  return taskInfo.getMaxNumberOfParallelSubtasks();
}
origin: com.alibaba.blink/flink-core

@Override
public int getMaxNumberOfParallelSubtasks() {
  return taskInfo.getMaxNumberOfParallelSubtasks();
}
origin: org.apache.flink/flink-streaming-java_2.11

taskInfo.getMaxNumberOfParallelSubtasks(),
taskInfo.getNumberOfParallelSubtasks(),
taskInfo.getIndexOfThisSubtask());
    operatorIdentifierText,
    keySerializer,
    taskInfo.getMaxNumberOfParallelSubtasks(),
    keyGroupRange,
    environment.getTaskKvStateRegistry(),
origin: org.apache.flink/flink-streaming-java

taskInfo.getMaxNumberOfParallelSubtasks(),
taskInfo.getNumberOfParallelSubtasks(),
taskInfo.getIndexOfThisSubtask());
    operatorIdentifierText,
    keySerializer,
    taskInfo.getMaxNumberOfParallelSubtasks(),
    keyGroupRange,
    environment.getTaskKvStateRegistry(),
origin: org.apache.flink/flink-streaming-java_2.10

private void initKeyedState() {
  try {
    TypeSerializer<Object> keySerializer = config.getStateKeySerializer(getUserCodeClassloader());
    // create a keyed state backend if there is keyed state, as indicated by the presence of a key serializer
    if (null != keySerializer) {
      KeyGroupRange subTaskKeyGroupRange = KeyGroupRangeAssignment.computeKeyGroupRangeForOperatorIndex(
          container.getEnvironment().getTaskInfo().getMaxNumberOfParallelSubtasks(),
          container.getEnvironment().getTaskInfo().getNumberOfParallelSubtasks(),
          container.getEnvironment().getTaskInfo().getIndexOfThisSubtask());
      this.keyedStateBackend = container.createKeyedStateBackend(
          keySerializer,
          // The maximum parallelism == number of key group
          container.getEnvironment().getTaskInfo().getMaxNumberOfParallelSubtasks(),
          subTaskKeyGroupRange);
      this.keyedStateStore = new DefaultKeyedStateStore(keyedStateBackend, getExecutionConfig());
    }
  } catch (Exception e) {
    throw new IllegalStateException("Could not initialize keyed state backend.", e);
  }
}
org.apache.flink.api.commonTaskInfogetMaxNumberOfParallelSubtasks

Javadoc

Gets the max parallelism aka the max number of subtasks.

Popular methods of TaskInfo

  • getIndexOfThisSubtask
    Gets the number of this parallel subtask. The numbering starts from 0 and goes up to parallelism-1 (
  • getNumberOfParallelSubtasks
    Gets the parallelism with which the parallel task runs.
  • getTaskNameWithSubtasks
    Returns the name of the task, appended with the subtask indicator, such as "MyTask (3/6)", where 3 w
  • getTaskName
    Returns the name of the task
  • <init>
  • getAttemptNumber
    Gets the attempt number of this parallel subtask. First attempt is numbered 0. The attempt number co
  • getAllocationIDAsString
    Returns the allocation id for where this task is executed.

Popular in Java

  • Creating JSON documents from java classes using gson
  • getResourceAsStream (ClassLoader)
  • compareTo (BigDecimal)
  • setRequestProperty (URLConnection)
  • HttpServer (com.sun.net.httpserver)
    This class implements a simple HTTP server. A HttpServer is bound to an IP address and port number a
  • Charset (java.nio.charset)
    A charset is a named mapping between Unicode characters and byte sequences. Every Charset can decode
  • SQLException (java.sql)
    An exception that indicates a failed JDBC operation. It provides the following information about pro
  • SortedMap (java.util)
    A map that has its keys ordered. The sorting is according to either the natural ordering of its keys
  • Semaphore (java.util.concurrent)
    A counting semaphore. Conceptually, a semaphore maintains a set of permits. Each #acquire blocks if
  • Project (org.apache.tools.ant)
    Central representation of an Ant project. This class defines an Ant project with all of its targets,
  • 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