Tabnine Logo
WorksetIterationNode$WorksetOpDescriptor
Code IndexAdd Tabnine to your IDE (free)

How to use
WorksetIterationNode$WorksetOpDescriptor
in
org.apache.flink.optimizer.dag

Best Java code snippets using org.apache.flink.optimizer.dag.WorksetIterationNode$WorksetOpDescriptor (Showing top 5 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: 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-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: 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));
}
org.apache.flink.optimizer.dagWorksetIterationNode$WorksetOpDescriptor

Most used methods

  • <init>

Popular in Java

  • Reactive rest calls using spring rest template
  • scheduleAtFixedRate (ScheduledExecutorService)
  • getSupportFragmentManager (FragmentActivity)
  • getExternalFilesDir (Context)
  • Color (java.awt)
    The Color class is used to encapsulate colors in the default sRGB color space or colors in arbitrary
  • FileReader (java.io)
    A specialized Reader that reads from a file in the file system. All read requests made by calling me
  • DateFormat (java.text)
    Formats or parses dates and times.This class provides factories for obtaining instances configured f
  • Reference (javax.naming)
  • JTextField (javax.swing)
  • Logger (org.slf4j)
    The org.slf4j.Logger interface is the main user entry point of SLF4J API. It is expected that loggin
  • From CI to AI: The AI layer in your organization
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