Tabnine Logo
BroadcastVariableMaterialization.getVariable
Code IndexAdd Tabnine to your IDE (free)

How to use
getVariable
method
in
org.apache.flink.runtime.broadcast.BroadcastVariableMaterialization

Best Java code snippets using org.apache.flink.runtime.broadcast.BroadcastVariableMaterialization.getVariable (Showing top 8 results out of 315)

origin: org.apache.flink/flink-runtime

@Override
public <T, C> C getBroadcastVariableWithInitializer(String name, BroadcastVariableInitializer<T, C> initializer) {
  Preconditions.checkNotNull(name, "The broadcast variable name must not be null.");
  Preconditions.checkNotNull(initializer, "The broadcast variable initializer must not be null.");
  // check if we have an initialized version
  @SuppressWarnings("unchecked")
  BroadcastVariableMaterialization<T, C> variable = (BroadcastVariableMaterialization<T, C>) this.broadcastVars.get(name);
  if (variable != null) {
    return variable.getVariable(initializer);
  }
  else {
    throw new IllegalArgumentException("The broadcast variable with name '" + name + "' has not been set.");
  }
}

origin: org.apache.flink/flink-runtime_2.11

@Override
public <T, C> C getBroadcastVariableWithInitializer(String name, BroadcastVariableInitializer<T, C> initializer) {
  Preconditions.checkNotNull(name, "The broadcast variable name must not be null.");
  Preconditions.checkNotNull(initializer, "The broadcast variable initializer must not be null.");
  // check if we have an initialized version
  @SuppressWarnings("unchecked")
  BroadcastVariableMaterialization<T, C> variable = (BroadcastVariableMaterialization<T, C>) this.broadcastVars.get(name);
  if (variable != null) {
    return variable.getVariable(initializer);
  }
  else {
    throw new IllegalArgumentException("The broadcast variable with name '" + name + "' has not been set.");
  }
}

origin: org.apache.flink/flink-runtime_2.10

@Override
public <T, C> C getBroadcastVariableWithInitializer(String name, BroadcastVariableInitializer<T, C> initializer) {
  Preconditions.checkNotNull(name, "The broadcast variable name must not be null.");
  Preconditions.checkNotNull(initializer, "The broadcast variable initializer must not be null.");
  // check if we have an initialized version
  @SuppressWarnings("unchecked")
  BroadcastVariableMaterialization<T, C> variable = (BroadcastVariableMaterialization<T, C>) this.broadcastVars.get(name);
  if (variable != null) {
    return variable.getVariable(initializer);
  }
  else {
    throw new IllegalArgumentException("The broadcast variable with name '" + name + "' has not been set.");
  }
}

origin: com.alibaba.blink/flink-runtime

@Override
public <T, C> C getBroadcastVariableWithInitializer(String name, BroadcastVariableInitializer<T, C> initializer) {
  Preconditions.checkNotNull(name, "The broadcast variable name must not be null.");
  Preconditions.checkNotNull(initializer, "The broadcast variable initializer must not be null.");
  // check if we have an initialized version
  @SuppressWarnings("unchecked")
  BroadcastVariableMaterialization<T, C> variable = (BroadcastVariableMaterialization<T, C>) this.broadcastVars.get(name);
  if (variable != null) {
    return variable.getVariable(initializer);
  }
  else {
    throw new IllegalArgumentException("The broadcast variable with name '" + name + "' has not been set.");
  }
}

origin: org.apache.flink/flink-runtime

@Override
public <T> List<T> getBroadcastVariable(String name) {
  Preconditions.checkNotNull(name, "The broadcast variable name must not be null.");
  
  // check if we have an initialized version
  @SuppressWarnings("unchecked")
  BroadcastVariableMaterialization<T, ?> variable = (BroadcastVariableMaterialization<T, ?>) this.broadcastVars.get(name);
  if (variable != null) {
    try {
      return variable.getVariable();
    }
    catch (InitializationTypeConflictException e) {
      throw new RuntimeException("The broadcast variable '" + name + "' has been initialized by a prior call to a " + e.getType());
    }
  }
  else {
    throw new IllegalArgumentException("The broadcast variable with name '" + name + "' has not been set.");
  }
}

origin: com.alibaba.blink/flink-runtime

@Override
public <T> List<T> getBroadcastVariable(String name) {
  Preconditions.checkNotNull(name, "The broadcast variable name must not be null.");
  
  // check if we have an initialized version
  @SuppressWarnings("unchecked")
  BroadcastVariableMaterialization<T, ?> variable = (BroadcastVariableMaterialization<T, ?>) this.broadcastVars.get(name);
  if (variable != null) {
    try {
      return variable.getVariable();
    }
    catch (InitializationTypeConflictException e) {
      throw new RuntimeException("The broadcast variable '" + name + "' has been initialized by a prior call to a " + e.getType());
    }
  }
  else {
    throw new IllegalArgumentException("The broadcast variable with name '" + name + "' has not been set.");
  }
}

origin: org.apache.flink/flink-runtime_2.11

@Override
public <T> List<T> getBroadcastVariable(String name) {
  Preconditions.checkNotNull(name, "The broadcast variable name must not be null.");
  
  // check if we have an initialized version
  @SuppressWarnings("unchecked")
  BroadcastVariableMaterialization<T, ?> variable = (BroadcastVariableMaterialization<T, ?>) this.broadcastVars.get(name);
  if (variable != null) {
    try {
      return variable.getVariable();
    }
    catch (InitializationTypeConflictException e) {
      throw new RuntimeException("The broadcast variable '" + name + "' has been initialized by a prior call to a " + e.getType());
    }
  }
  else {
    throw new IllegalArgumentException("The broadcast variable with name '" + name + "' has not been set.");
  }
}

origin: org.apache.flink/flink-runtime_2.10

@Override
public <T> List<T> getBroadcastVariable(String name) {
  Preconditions.checkNotNull(name, "The broadcast variable name must not be null.");
  
  // check if we have an initialized version
  @SuppressWarnings("unchecked")
  BroadcastVariableMaterialization<T, ?> variable = (BroadcastVariableMaterialization<T, ?>) this.broadcastVars.get(name);
  if (variable != null) {
    try {
      return variable.getVariable();
    }
    catch (InitializationTypeConflictException e) {
      throw new RuntimeException("The broadcast variable '" + name + "' has been initialized by a prior call to a " + e.getType());
    }
  }
  else {
    throw new IllegalArgumentException("The broadcast variable with name '" + name + "' has not been set.");
  }
}

org.apache.flink.runtime.broadcastBroadcastVariableMaterializationgetVariable

Popular methods of BroadcastVariableMaterialization

  • <init>
  • decrementReference
  • decrementReferenceIfHeld
  • decrementReferenceInternal
  • materializeVariable

Popular in Java

  • Running tasks concurrently on multiple threads
  • compareTo (BigDecimal)
  • putExtra (Intent)
  • requestLocationUpdates (LocationManager)
  • URLEncoder (java.net)
    This class is used to encode a string using the format required by application/x-www-form-urlencoded
  • Comparator (java.util)
    A Comparator is used to compare two objects to determine their ordering with respect to each other.
  • PriorityQueue (java.util)
    A PriorityQueue holds elements on a priority heap, which orders the elements according to their natu
  • Set (java.util)
    A Set is a data structure which does not allow duplicate elements.
  • 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.
  • CodeWhisperer alternatives
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