congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
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

  • Creating JSON documents from java classes using gson
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • scheduleAtFixedRate (Timer)
  • Color (java.awt)
    The Color class is used to encapsulate colors in the default sRGB color space or colors in arbitrary
  • Point (java.awt)
    A point representing a location in (x,y) coordinate space, specified in integer precision.
  • ConnectException (java.net)
    A ConnectException is thrown if a connection cannot be established to a remote host on a specific po
  • URLConnection (java.net)
    A connection to a URL for reading or writing. For HTTP connections, see HttpURLConnection for docume
  • SecureRandom (java.security)
    This class generates cryptographically secure pseudo-random numbers. It is best to invoke SecureRand
  • Reference (javax.naming)
  • CodeWhisperer alternatives
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