Codota Logo
OperatorDescriptorDual$GlobalPropertiesPair
Code IndexAdd Codota to your IDE (free)

How to use
OperatorDescriptorDual$GlobalPropertiesPair
in
org.apache.flink.optimizer.operators

Best Java code snippets using org.apache.flink.optimizer.operators.OperatorDescriptorDual$GlobalPropertiesPair (Showing top 20 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
Connection c =
  • Codota IconDataSource dataSource;dataSource.getConnection()
  • Codota IconString url;DriverManager.getConnection(url)
  • Codota IconIdentityDatabaseUtil.getDBConnection()
  • Smart code suggestions by Codota
}
origin: apache/flink

@Override
protected List<GlobalPropertiesPair> createPossibleGlobalProperties() {
  RequestedGlobalProperties partitionedGp = new RequestedGlobalProperties();
  partitionedGp.setHashPartitioned(this.keys1);
  return Collections.singletonList(new GlobalPropertiesPair(partitionedGp, new RequestedGlobalProperties()));
}
origin: apache/flink

if (gpp.getProperties1().isMetBy(c1.getGlobalProperties()) && 
  gpp.getProperties2().isMetBy(c2.getGlobalProperties()) )
    if (desc.areCompatible(gpp.getProperties1(), gpp.getProperties2(), 
        c1.getGlobalProperties(), c2.getGlobalProperties()))
      c1Clone.setRequiredGlobalProps(gpp.getProperties1());
      c2.setRequiredGlobalProps(gpp.getProperties2());
origin: org.apache.flink/flink-optimizer_2.11

@Override
protected List<OperatorDescriptorDual.GlobalPropertiesPair> createPossibleGlobalProperties() {
  RequestedGlobalProperties partitioned1 = new RequestedGlobalProperties();
  partitioned1.setHashPartitioned(this.keys1);
  RequestedGlobalProperties partitioned2 = new RequestedGlobalProperties();
  partitioned2.setHashPartitioned(this.keys2);
  return Collections.singletonList(new OperatorDescriptorDual.GlobalPropertiesPair(partitioned1, partitioned2));
}
origin: org.apache.flink/flink-optimizer_2.11

@Override
protected List<GlobalPropertiesPair> createPossibleGlobalProperties() {
  // all properties are possible
  return Collections.singletonList(new GlobalPropertiesPair(
    new RequestedGlobalProperties(), new RequestedGlobalProperties()));
}
origin: org.apache.flink/flink-optimizer_2.11

@Override
protected List<GlobalPropertiesPair> createPossibleGlobalProperties() {
  RequestedGlobalProperties partitionedGp = new RequestedGlobalProperties();
  partitionedGp.setHashPartitioned(this.keys1);
  return Collections.singletonList(new GlobalPropertiesPair(partitionedGp, new RequestedGlobalProperties()));
}
origin: com.alibaba.blink/flink-optimizer

@Override
protected List<GlobalPropertiesPair> createPossibleGlobalProperties() {
  // all properties are possible
  return Collections.singletonList(new GlobalPropertiesPair(
    new RequestedGlobalProperties(), new RequestedGlobalProperties()));
}
origin: org.apache.flink/flink-optimizer_2.10

@Override
protected List<GlobalPropertiesPair> createPossibleGlobalProperties() {
  // all properties are possible
  return Collections.singletonList(new GlobalPropertiesPair(
    new RequestedGlobalProperties(), new RequestedGlobalProperties()));
}
origin: org.apache.flink/flink-optimizer

@Override
protected List<GlobalPropertiesPair> createPossibleGlobalProperties() {
  ArrayList<GlobalPropertiesPair> pairs = new ArrayList<GlobalPropertiesPair>();
  
  if (this.allowBroadcastFirst) {
    // replicate first
    RequestedGlobalProperties replicated1 = new RequestedGlobalProperties();
    replicated1.setFullyReplicated();
    RequestedGlobalProperties any2 = new RequestedGlobalProperties();
    pairs.add(new GlobalPropertiesPair(replicated1, any2));
  }
  
  if (this.allowBroadcastSecond) {
    // replicate second
    RequestedGlobalProperties any1 = new RequestedGlobalProperties();
    RequestedGlobalProperties replicated2 = new RequestedGlobalProperties();
    replicated2.setFullyReplicated();
    pairs.add(new GlobalPropertiesPair(any1, replicated2));
  }
  return pairs;
}

origin: com.alibaba.blink/flink-optimizer

@Override
protected List<GlobalPropertiesPair> createPossibleGlobalProperties() {
  ArrayList<GlobalPropertiesPair> pairs = new ArrayList<GlobalPropertiesPair>();
  
  if (this.allowBroadcastFirst) {
    // replicate first
    RequestedGlobalProperties replicated1 = new RequestedGlobalProperties();
    replicated1.setFullyReplicated();
    RequestedGlobalProperties any2 = new RequestedGlobalProperties();
    pairs.add(new GlobalPropertiesPair(replicated1, any2));
  }
  
  if (this.allowBroadcastSecond) {
    // replicate second
    RequestedGlobalProperties any1 = new RequestedGlobalProperties();
    RequestedGlobalProperties replicated2 = new RequestedGlobalProperties();
    replicated2.setFullyReplicated();
    pairs.add(new GlobalPropertiesPair(any1, replicated2));
  }
  return pairs;
}

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

@Override
protected List<GlobalPropertiesPair> createPossibleGlobalProperties() {
  ArrayList<GlobalPropertiesPair> pairs = new ArrayList<GlobalPropertiesPair>();
  
  if (this.allowBroadcastFirst) {
    // replicate first
    RequestedGlobalProperties replicated1 = new RequestedGlobalProperties();
    replicated1.setFullyReplicated();
    RequestedGlobalProperties any2 = new RequestedGlobalProperties();
    pairs.add(new GlobalPropertiesPair(replicated1, any2));
  }
  
  if (this.allowBroadcastSecond) {
    // replicate second
    RequestedGlobalProperties any1 = new RequestedGlobalProperties();
    RequestedGlobalProperties replicated2 = new RequestedGlobalProperties();
    replicated2.setFullyReplicated();
    pairs.add(new GlobalPropertiesPair(any1, replicated2));
  }
  return pairs;
}

origin: org.apache.flink/flink-optimizer

@Override
protected List<GlobalPropertiesPair> createPossibleGlobalProperties() {
  if (this.customPartitioner == null) {
    // we accept compatible partitionings of any type
    RequestedGlobalProperties partitioned_left_any = new RequestedGlobalProperties();
    RequestedGlobalProperties partitioned_right_any = new RequestedGlobalProperties();
    partitioned_left_any.setAnyPartitioning(this.keys1);
    partitioned_right_any.setAnyPartitioning(this.keys2);
    // add strict hash partitioning of both inputs on their full key sets
    RequestedGlobalProperties partitioned_left_hash = new RequestedGlobalProperties();
    RequestedGlobalProperties partitioned_right_hash = new RequestedGlobalProperties();
    partitioned_left_hash.setHashPartitioned(this.keys1);
    partitioned_right_hash.setHashPartitioned(this.keys2);
    return Arrays.asList(new GlobalPropertiesPair(partitioned_left_any, partitioned_right_any),
        new GlobalPropertiesPair(partitioned_left_hash, partitioned_right_hash));
  }
  else {
    RequestedGlobalProperties partitioned_left = new RequestedGlobalProperties();
    partitioned_left.setCustomPartitioned(this.keys1, this.customPartitioner);
    RequestedGlobalProperties partitioned_right = new RequestedGlobalProperties();
    partitioned_right.setCustomPartitioned(this.keys2, this.customPartitioner);
    return Collections.singletonList(new GlobalPropertiesPair(partitioned_left, partitioned_right));
  }
}

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

@Override
protected List<GlobalPropertiesPair> createPossibleGlobalProperties() {
  if (this.customPartitioner == null) {
    // we accept compatible partitionings of any type
    RequestedGlobalProperties partitioned_left_any = new RequestedGlobalProperties();
    RequestedGlobalProperties partitioned_right_any = new RequestedGlobalProperties();
    partitioned_left_any.setAnyPartitioning(this.keys1);
    partitioned_right_any.setAnyPartitioning(this.keys2);
    // add strict hash partitioning of both inputs on their full key sets
    RequestedGlobalProperties partitioned_left_hash = new RequestedGlobalProperties();
    RequestedGlobalProperties partitioned_right_hash = new RequestedGlobalProperties();
    partitioned_left_hash.setHashPartitioned(this.keys1);
    partitioned_right_hash.setHashPartitioned(this.keys2);
    return Arrays.asList(new GlobalPropertiesPair(partitioned_left_any, partitioned_right_any),
        new GlobalPropertiesPair(partitioned_left_hash, partitioned_right_hash));
  }
  else {
    RequestedGlobalProperties partitioned_left = new RequestedGlobalProperties();
    partitioned_left.setCustomPartitioned(this.keys1, this.customPartitioner);
    RequestedGlobalProperties partitioned_right = new RequestedGlobalProperties();
    partitioned_right.setCustomPartitioned(this.keys2, this.customPartitioner);
    return Collections.singletonList(new GlobalPropertiesPair(partitioned_left, partitioned_right));
  }
}

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

@Override
protected List<OperatorDescriptorDual.GlobalPropertiesPair> createPossibleGlobalProperties() {
  RequestedGlobalProperties partitioned1 = new RequestedGlobalProperties();
  partitioned1.setHashPartitioned(this.keys1);
  RequestedGlobalProperties partitioned2 = new RequestedGlobalProperties();
  partitioned2.setHashPartitioned(this.keys2);
  return Collections.singletonList(new OperatorDescriptorDual.GlobalPropertiesPair(partitioned1, partitioned2));
}
origin: org.apache.flink/flink-optimizer_2.10

@Override
protected List<GlobalPropertiesPair> createPossibleGlobalProperties() {
  if (this.customPartitioner == null) {
    // we accept compatible partitionings of any type
    RequestedGlobalProperties partitioned_left_any = new RequestedGlobalProperties();
    RequestedGlobalProperties partitioned_right_any = new RequestedGlobalProperties();
    partitioned_left_any.setAnyPartitioning(this.keys1);
    partitioned_right_any.setAnyPartitioning(this.keys2);
    // add strict hash partitioning of both inputs on their full key sets
    RequestedGlobalProperties partitioned_left_hash = new RequestedGlobalProperties();
    RequestedGlobalProperties partitioned_right_hash = new RequestedGlobalProperties();
    partitioned_left_hash.setHashPartitioned(this.keys1);
    partitioned_right_hash.setHashPartitioned(this.keys2);
    return Arrays.asList(new GlobalPropertiesPair(partitioned_left_any, partitioned_right_any),
        new GlobalPropertiesPair(partitioned_left_hash, partitioned_right_hash));
  }
  else {
    RequestedGlobalProperties partitioned_left = new RequestedGlobalProperties();
    partitioned_left.setCustomPartitioned(this.keys1, this.customPartitioner);
    RequestedGlobalProperties partitioned_right = new RequestedGlobalProperties();
    partitioned_right.setCustomPartitioned(this.keys2, this.customPartitioner);
    return Collections.singletonList(new GlobalPropertiesPair(partitioned_left, partitioned_right));
  }
}

origin: com.alibaba.blink/flink-optimizer

@Override
protected List<GlobalPropertiesPair> createPossibleGlobalProperties() {
  RequestedGlobalProperties partitionedGp = new RequestedGlobalProperties();
  partitionedGp.setHashPartitioned(this.keys1);
  return Collections.singletonList(new GlobalPropertiesPair(partitionedGp, new RequestedGlobalProperties()));
}
origin: org.apache.flink/flink-optimizer

@Override
public void computeInterestingPropertiesForInputs(CostEstimator estimator) {
  // get what we inherit and what is preserved by our user code 
  final InterestingProperties props1 = getInterestingProperties().filterByCodeAnnotations(this, 0);
  final InterestingProperties props2 = getInterestingProperties().filterByCodeAnnotations(this, 1);
  
  // add all properties relevant to this node
  for (OperatorDescriptorDual dpd : getProperties()) {
    for (GlobalPropertiesPair gp : dpd.getPossibleGlobalProperties()) {
      // input 1
      props1.addGlobalProperties(gp.getProperties1());
      
      // input 2
      props2.addGlobalProperties(gp.getProperties2());
    }
    for (LocalPropertiesPair lp : dpd.getPossibleLocalProperties()) {
      // input 1
      props1.addLocalProperties(lp.getProperties1());
      
      // input 2
      props2.addLocalProperties(lp.getProperties2());
    }
  }
  this.input1.setInterestingProperties(props1);
  this.input2.setInterestingProperties(props2);
  
  for (DagConnection conn : getBroadcastConnections()) {
    conn.setInterestingProperties(new InterestingProperties());
  }
}
origin: org.apache.flink/flink-optimizer

@Override
protected List<OperatorDescriptorDual.GlobalPropertiesPair> createPossibleGlobalProperties() {
  RequestedGlobalProperties partitioned1 = new RequestedGlobalProperties();
  partitioned1.setHashPartitioned(this.keys1);
  RequestedGlobalProperties partitioned2 = new RequestedGlobalProperties();
  partitioned2.setHashPartitioned(this.keys2);
  return Collections.singletonList(new OperatorDescriptorDual.GlobalPropertiesPair(partitioned1, partitioned2));
}
origin: com.alibaba.blink/flink-optimizer

@Override
protected List<GlobalPropertiesPair> createPossibleGlobalProperties() {
  if (this.customPartitioner == null) {
    // we accept compatible partitionings of any type
    RequestedGlobalProperties partitioned_left_any = new RequestedGlobalProperties();
    RequestedGlobalProperties partitioned_right_any = new RequestedGlobalProperties();
    partitioned_left_any.setAnyPartitioning(this.keys1);
    partitioned_right_any.setAnyPartitioning(this.keys2);
    // add strict hash partitioning of both inputs on their full key sets
    RequestedGlobalProperties partitioned_left_hash = new RequestedGlobalProperties();
    RequestedGlobalProperties partitioned_right_hash = new RequestedGlobalProperties();
    partitioned_left_hash.setHashPartitioned(this.keys1);
    partitioned_right_hash.setHashPartitioned(this.keys2);
    return Arrays.asList(new GlobalPropertiesPair(partitioned_left_any, partitioned_right_any),
        new GlobalPropertiesPair(partitioned_left_hash, partitioned_right_hash));
  }
  else {
    RequestedGlobalProperties partitioned_left = new RequestedGlobalProperties();
    partitioned_left.setCustomPartitioned(this.keys1, this.customPartitioner);
    RequestedGlobalProperties partitioned_right = new RequestedGlobalProperties();
    partitioned_right.setCustomPartitioned(this.keys2, this.customPartitioner);
    return Collections.singletonList(new GlobalPropertiesPair(partitioned_left, partitioned_right));
  }
}

origin: org.apache.flink/flink-optimizer

@Override
protected List<GlobalPropertiesPair> createPossibleGlobalProperties() {
  RequestedGlobalProperties partitionedGp = new RequestedGlobalProperties();
  partitionedGp.setHashPartitioned(this.keys1);
  return Collections.singletonList(new GlobalPropertiesPair(partitionedGp, new RequestedGlobalProperties()));
}
origin: com.alibaba.blink/flink-optimizer

@Override
public void computeInterestingPropertiesForInputs(CostEstimator estimator) {
  // get what we inherit and what is preserved by our user code 
  final InterestingProperties props1 = getInterestingProperties().filterByCodeAnnotations(this, 0);
  final InterestingProperties props2 = getInterestingProperties().filterByCodeAnnotations(this, 1);
  
  // add all properties relevant to this node
  for (OperatorDescriptorDual dpd : getProperties()) {
    for (GlobalPropertiesPair gp : dpd.getPossibleGlobalProperties()) {
      // input 1
      props1.addGlobalProperties(gp.getProperties1());
      
      // input 2
      props2.addGlobalProperties(gp.getProperties2());
    }
    for (LocalPropertiesPair lp : dpd.getPossibleLocalProperties()) {
      // input 1
      props1.addLocalProperties(lp.getProperties1());
      
      // input 2
      props2.addLocalProperties(lp.getProperties2());
    }
  }
  this.input1.setInterestingProperties(props1);
  this.input2.setInterestingProperties(props2);
  
  for (DagConnection conn : getBroadcastConnections()) {
    conn.setInterestingProperties(new InterestingProperties());
  }
}
org.apache.flink.optimizer.operatorsOperatorDescriptorDual$GlobalPropertiesPair

Most used methods

  • <init>
  • getProperties1
  • getProperties2

Popular in Java

  • Reactive rest calls using spring rest template
  • scheduleAtFixedRate (ScheduledExecutorService)
  • setScale (BigDecimal)
    Returns a BigDecimal whose scale is the specified value, and whose value is numerically equal to thi
  • getSharedPreferences (Context)
  • InputStream (java.io)
    A readable source of bytes.Most clients will use input streams that read data from the file system (
  • Deque (java.util)
    A linear collection that supports element insertion and removal at both ends. The name deque is shor
  • PriorityQueue (java.util)
    An unbounded priority Queue based on a priority heap. The elements of the priority queue are ordered
  • JFileChooser (javax.swing)
  • Join (org.hibernate.mapping)
  • Scheduler (org.quartz)
    This is the main interface of a Quartz Scheduler. A Scheduler maintains a registery of org.quartz
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now