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

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

Best Java code snippets using org.apache.flink.api.common.operators.base.DeltaIterationBase.getSolutionSetKeyFields (Showing top 9 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

TypeInformation<?> solutionType = operatorInfo.getFirstInputType();
int[] keyColumns = iteration.getSolutionSetKeyFields();
boolean[] inputOrderings = new boolean[keyColumns.length];
TypeComparator<T> inputComparator = ((CompositeType<T>) solutionType).createComparator(keyColumns, inputOrderings, 0, executionConfig);
origin: apache/flink

assertArrayEquals(iterationKeys, iteration.getSolutionSetKeyFields());
assertEquals(iterationParallelism, iteration.getParallelism());
assertEquals(iterationName, iteration.getName());
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

TypeInformation<?> solutionType = operatorInfo.getFirstInputType();
int[] keyColumns = iteration.getSolutionSetKeyFields();
boolean[] inputOrderings = new boolean[keyColumns.length];
TypeComparator<T> inputComparator = ((CompositeType<T>) solutionType).createComparator(keyColumns, inputOrderings, 0, executionConfig);
origin: com.alibaba.blink/flink-core

TypeInformation<?> solutionType = operatorInfo.getFirstInputType();
int[] keyColumns = iteration.getSolutionSetKeyFields();
boolean[] inputOrderings = new boolean[keyColumns.length];
TypeComparator<T> inputComparator = ((CompositeType<T>) solutionType).createComparator(keyColumns, inputOrderings, 0, executionConfig);
org.apache.flink.api.common.operators.baseDeltaIterationBasegetSolutionSetKeyFields

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.
  • getMaximumNumberOfIterations
  • 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

  • Updating database using SQL prepared statement
  • addToBackStack (FragmentTransaction)
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • runOnUiThread (Activity)
  • VirtualMachine (com.sun.tools.attach)
    A Java virtual machine. A VirtualMachine represents a Java virtual machine to which this Java vir
  • FileWriter (java.io)
    A specialized Writer that writes to a file in the file system. All write requests made by calling me
  • ResultSet (java.sql)
    An interface for an object which represents a database table entry, returned as the result of the qu
  • ArrayList (java.util)
    ArrayList is an implementation of List, backed by an array. All optional operations including adding
  • Timer (java.util)
    Timers schedule one-shot or recurring TimerTask for execution. Prefer java.util.concurrent.Scheduled
  • Manifest (java.util.jar)
    The Manifest class is used to obtain attribute information for a JarFile and its entries.
  • Top plugins for Android Studio
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