Tabnine Logo
DeltaIterationBase.getMaximumNumberOfIterations
Code IndexAdd Tabnine to your IDE (free)

How to use
getMaximumNumberOfIterations
method
in
org.apache.flink.api.common.operators.base.DeltaIterationBase

Best Java code snippets using org.apache.flink.api.common.operators.base.DeltaIterationBase.getMaximumNumberOfIterations (Showing top 14 results out of 315)

origin: apache/flink

/**
 * Creates a new node with a single input for the optimizer plan.
 * 
 * @param iteration The iteration operator that the node represents.
 */
public WorksetIterationNode(DeltaIterationBase<?, ?> iteration) {
  super(iteration);
  
  final int[] ssKeys = iteration.getSolutionSetKeyFields();
  if (ssKeys == null || ssKeys.length == 0) {
    throw new CompilerException("Invalid WorksetIteration: No key fields defined for the solution set.");
  }
  this.solutionSetKeyFields = new FieldList(ssKeys);
  this.partitionedProperties = new GlobalProperties();
  this.partitionedProperties.setHashPartitioned(this.solutionSetKeyFields);
  
  int weight = iteration.getMaximumNumberOfIterations() > 0 ? 
    iteration.getMaximumNumberOfIterations() : DEFAULT_COST_WEIGHT;
    
  if (weight > OptimizerNode.MAX_DYNAMIC_PATH_COST_WEIGHT) {
    weight = OptimizerNode.MAX_DYNAMIC_PATH_COST_WEIGHT;
  }
  this.costWeight = weight; 
  
  this.dataProperties = Collections.<OperatorDescriptorDual>singletonList(new WorksetOpDescriptor(this.solutionSetKeyFields));
}
origin: apache/flink

ConvergenceCriterion<Value> convCriterion = (ConvergenceCriterion<Value>) iteration.getAggregators().getConvergenceCriterion();
final int maxIterations = iteration.getMaximumNumberOfIterations();
origin: apache/flink

final int maxNumIterations = iterNode.getIterationNode().getIterationContract().getMaximumNumberOfIterations();
if (maxNumIterations < 1) {
  throw new CompilerException("Cannot create workset iteration with unspecified maximum number of iterations.");
origin: apache/flink

assertEquals(numIterations, iteration.getMaximumNumberOfIterations());
assertArrayEquals(iterationKeys, iteration.getSolutionSetKeyFields());
assertEquals(iterationParallelism, iteration.getParallelism());
origin: com.alibaba.blink/flink-optimizer

/**
 * Creates a new node with a single input for the optimizer plan.
 * 
 * @param iteration The iteration operator that the node represents.
 */
public WorksetIterationNode(DeltaIterationBase<?, ?> iteration) {
  super(iteration);
  
  final int[] ssKeys = iteration.getSolutionSetKeyFields();
  if (ssKeys == null || ssKeys.length == 0) {
    throw new CompilerException("Invalid WorksetIteration: No key fields defined for the solution set.");
  }
  this.solutionSetKeyFields = new FieldList(ssKeys);
  this.partitionedProperties = new GlobalProperties();
  this.partitionedProperties.setHashPartitioned(this.solutionSetKeyFields);
  
  int weight = iteration.getMaximumNumberOfIterations() > 0 ? 
    iteration.getMaximumNumberOfIterations() : DEFAULT_COST_WEIGHT;
    
  if (weight > OptimizerNode.MAX_DYNAMIC_PATH_COST_WEIGHT) {
    weight = OptimizerNode.MAX_DYNAMIC_PATH_COST_WEIGHT;
  }
  this.costWeight = weight; 
  
  this.dataProperties = Collections.<OperatorDescriptorDual>singletonList(new WorksetOpDescriptor(this.solutionSetKeyFields));
}
origin: org.apache.flink/flink-optimizer_2.10

/**
 * Creates a new node with a single input for the optimizer plan.
 * 
 * @param iteration The iteration operator that the node represents.
 */
public WorksetIterationNode(DeltaIterationBase<?, ?> iteration) {
  super(iteration);
  
  final int[] ssKeys = iteration.getSolutionSetKeyFields();
  if (ssKeys == null || ssKeys.length == 0) {
    throw new CompilerException("Invalid WorksetIteration: No key fields defined for the solution set.");
  }
  this.solutionSetKeyFields = new FieldList(ssKeys);
  this.partitionedProperties = new GlobalProperties();
  this.partitionedProperties.setHashPartitioned(this.solutionSetKeyFields);
  
  int weight = iteration.getMaximumNumberOfIterations() > 0 ? 
    iteration.getMaximumNumberOfIterations() : DEFAULT_COST_WEIGHT;
    
  if (weight > OptimizerNode.MAX_DYNAMIC_PATH_COST_WEIGHT) {
    weight = OptimizerNode.MAX_DYNAMIC_PATH_COST_WEIGHT;
  }
  this.costWeight = weight; 
  
  this.dataProperties = Collections.<OperatorDescriptorDual>singletonList(new WorksetOpDescriptor(this.solutionSetKeyFields));
}
origin: org.apache.flink/flink-optimizer

/**
 * Creates a new node with a single input for the optimizer plan.
 * 
 * @param iteration The iteration operator that the node represents.
 */
public WorksetIterationNode(DeltaIterationBase<?, ?> iteration) {
  super(iteration);
  
  final int[] ssKeys = iteration.getSolutionSetKeyFields();
  if (ssKeys == null || ssKeys.length == 0) {
    throw new CompilerException("Invalid WorksetIteration: No key fields defined for the solution set.");
  }
  this.solutionSetKeyFields = new FieldList(ssKeys);
  this.partitionedProperties = new GlobalProperties();
  this.partitionedProperties.setHashPartitioned(this.solutionSetKeyFields);
  
  int weight = iteration.getMaximumNumberOfIterations() > 0 ? 
    iteration.getMaximumNumberOfIterations() : DEFAULT_COST_WEIGHT;
    
  if (weight > OptimizerNode.MAX_DYNAMIC_PATH_COST_WEIGHT) {
    weight = OptimizerNode.MAX_DYNAMIC_PATH_COST_WEIGHT;
  }
  this.costWeight = weight; 
  
  this.dataProperties = Collections.<OperatorDescriptorDual>singletonList(new WorksetOpDescriptor(this.solutionSetKeyFields));
}
origin: org.apache.flink/flink-optimizer_2.11

/**
 * Creates a new node with a single input for the optimizer plan.
 * 
 * @param iteration The iteration operator that the node represents.
 */
public WorksetIterationNode(DeltaIterationBase<?, ?> iteration) {
  super(iteration);
  
  final int[] ssKeys = iteration.getSolutionSetKeyFields();
  if (ssKeys == null || ssKeys.length == 0) {
    throw new CompilerException("Invalid WorksetIteration: No key fields defined for the solution set.");
  }
  this.solutionSetKeyFields = new FieldList(ssKeys);
  this.partitionedProperties = new GlobalProperties();
  this.partitionedProperties.setHashPartitioned(this.solutionSetKeyFields);
  
  int weight = iteration.getMaximumNumberOfIterations() > 0 ? 
    iteration.getMaximumNumberOfIterations() : DEFAULT_COST_WEIGHT;
    
  if (weight > OptimizerNode.MAX_DYNAMIC_PATH_COST_WEIGHT) {
    weight = OptimizerNode.MAX_DYNAMIC_PATH_COST_WEIGHT;
  }
  this.costWeight = weight; 
  
  this.dataProperties = Collections.<OperatorDescriptorDual>singletonList(new WorksetOpDescriptor(this.solutionSetKeyFields));
}
origin: org.apache.flink/flink-core

ConvergenceCriterion<Value> convCriterion = (ConvergenceCriterion<Value>) iteration.getAggregators().getConvergenceCriterion();
final int maxIterations = iteration.getMaximumNumberOfIterations();
origin: com.alibaba.blink/flink-core

ConvergenceCriterion<Value> convCriterion = (ConvergenceCriterion<Value>) iteration.getAggregators().getConvergenceCriterion();
final int maxIterations = iteration.getMaximumNumberOfIterations();
origin: org.apache.flink/flink-optimizer_2.11

final int maxNumIterations = iterNode.getIterationNode().getIterationContract().getMaximumNumberOfIterations();
if (maxNumIterations < 1) {
  throw new CompilerException("Cannot create workset iteration with unspecified maximum number of iterations.");
origin: com.alibaba.blink/flink-optimizer

final int maxNumIterations = iterNode.getIterationNode().getIterationContract().getMaximumNumberOfIterations();
if (maxNumIterations < 1) {
  throw new CompilerException("Cannot create workset iteration with unspecified maximum number of iterations.");
origin: org.apache.flink/flink-optimizer

final int maxNumIterations = iterNode.getIterationNode().getIterationContract().getMaximumNumberOfIterations();
if (maxNumIterations < 1) {
  throw new CompilerException("Cannot create workset iteration with unspecified maximum number of iterations.");
origin: org.apache.flink/flink-optimizer_2.10

final int maxNumIterations = iterNode.getIterationNode().getIterationContract().getMaximumNumberOfIterations();
if (maxNumIterations < 1) {
  throw new CompilerException("Cannot create workset iteration with unspecified maximum number of iterations.");
org.apache.flink.api.common.operators.baseDeltaIterationBasegetMaximumNumberOfIterations

Popular methods of DeltaIterationBase

  • getAggregators
  • getNextWorkset
    Gets the contract that has been set as the next workset.
  • getSolutionSet
    Gets the contract that represents the solution set for the step function.
  • getSolutionSetDelta
    Gets the contract that has been set as the solution set delta.
  • getWorkset
    Gets the contract that represents the workset for the step function.
  • getSolutionSetKeyFields
  • getOperatorInfo
  • isSolutionSetUnManaged
    gets whether the solution set is in managed or unmanaged memory.
  • getName
  • <init>
  • getFirstInput
  • getInitialSolutionSet
    Returns the initial solution set input, or null, if none is set.
  • getFirstInput,
  • getInitialSolutionSet,
  • getInitialWorkset,
  • getSecondInput,
  • setFirstInput,
  • setInitialSolutionSet,
  • setInitialWorkset,
  • setMaximumNumberOfIterations,
  • setNextWorkset

Popular in Java

  • Running tasks concurrently on multiple threads
  • scheduleAtFixedRate (ScheduledExecutorService)
  • getResourceAsStream (ClassLoader)
  • getApplicationContext (Context)
  • FlowLayout (java.awt)
    A flow layout arranges components in a left-to-right flow, much like lines of text in a paragraph. F
  • BufferedInputStream (java.io)
    A BufferedInputStream adds functionality to another input stream-namely, the ability to buffer the i
  • ServerSocket (java.net)
    This class represents a server-side socket that waits for incoming client connections. A ServerSocke
  • URL (java.net)
    A Uniform Resource Locator that identifies the location of an Internet resource as specified by RFC
  • ResultSet (java.sql)
    An interface for an object which represents a database table entry, returned as the result of the qu
  • HttpServlet (javax.servlet.http)
    Provides an abstract class to be subclassed to create an HTTP servlet suitable for a Web site. A sub
  • Top Vim 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