Tabnine Logo
OperatorDescriptorDual$GlobalPropertiesPair.<init>
Code IndexAdd Tabnine to your IDE (free)

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

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

origin: apache/flink

@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: 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

@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

@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.11

@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() {
  // 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: 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<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() {
  // all properties are possible
  return Collections.singletonList(new GlobalPropertiesPair(
    new RequestedGlobalProperties(), new RequestedGlobalProperties()));
}
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: com.alibaba.blink/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: org.apache.flink/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() {
  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() {
  RequestedGlobalProperties partitionedGp = new RequestedGlobalProperties();
  partitionedGp.setHashPartitioned(this.keys1);
  return Collections.singletonList(new GlobalPropertiesPair(partitionedGp, new RequestedGlobalProperties()));
}
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: 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: apache/flink

  partitioned_left_any.setAnyPartitioning(this.keys1);
  partitioned_right_any.setAnyPartitioning(this.keys2);
  pairs.add(new GlobalPropertiesPair(partitioned_left_any, partitioned_right_any));
  partitioned_left_hash.setHashPartitioned(this.keys1);
  partitioned_right_hash.setHashPartitioned(this.keys2);
  pairs.add(new GlobalPropertiesPair(partitioned_left_hash, partitioned_right_hash));
  partitioned_right.setCustomPartitioned(this.keys2, this.customPartitioner);
  return Collections.singletonList(new GlobalPropertiesPair(partitioned_left, partitioned_right));
pairs.add(new GlobalPropertiesPair(partitioned1, partitioned2));
RequestedGlobalProperties replicated2 = new RequestedGlobalProperties();
replicated2.setFullyReplicated();
pairs.add(new GlobalPropertiesPair(any1, replicated2));
replicated1.setFullyReplicated();
RequestedGlobalProperties any2 = new RequestedGlobalProperties();
pairs.add(new GlobalPropertiesPair(replicated1, any2));
origin: apache/flink

@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: apache/flink

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

Popular methods of OperatorDescriptorDual$GlobalPropertiesPair

  • getProperties1
  • getProperties2

Popular in Java

  • Reading from database using SQL prepared statement
  • setScale (BigDecimal)
  • getApplicationContext (Context)
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • Table (com.google.common.collect)
    A collection that associates an ordered pair of keys, called a row key and a column key, with a sing
  • Arrays (java.util)
    This class contains various methods for manipulating arrays (such as sorting and searching). This cl
  • Map (java.util)
    A Map is a data structure consisting of a set of keys and values in which each key is mapped to a si
  • Executors (java.util.concurrent)
    Factory and utility methods for Executor, ExecutorService, ScheduledExecutorService, ThreadFactory,
  • Collectors (java.util.stream)
  • Option (scala)
  • Top 17 Free Sublime Text Plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyStudentsTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now