Examples of RequestedGlobalProperties


Examples of org.apache.flink.compiler.dataproperties.RequestedGlobalProperties

    return new SingleInputPlanNode(node, "MapPartition ("+node.getPactContract().getName()+")", in, DriverStrategy.MAP_PARTITION);
  }

  @Override
  protected List<RequestedGlobalProperties> createPossibleGlobalProperties() {
    return Collections.singletonList(new RequestedGlobalProperties());
  }
View Full Code Here

Examples of org.apache.flink.compiler.dataproperties.RequestedGlobalProperties

      return DriverStrategy.NONE;
    }

    @Override
    protected List<GlobalPropertiesPair> createPossibleGlobalProperties() {
      RequestedGlobalProperties partitionedGp = new RequestedGlobalProperties();
      partitionedGp.setHashPartitioned(this.keys1);
      return Collections.singletonList(new GlobalPropertiesPair(partitionedGp, new RequestedGlobalProperties()));
    }
View Full Code Here

Examples of org.apache.flink.compiler.dataproperties.RequestedGlobalProperties

  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;
  }
View Full Code Here

Examples of org.apache.flink.compiler.dataproperties.RequestedGlobalProperties

    }
  }

  @Override
  protected List<RequestedGlobalProperties> createPossibleGlobalProperties() {
    RequestedGlobalProperties props = new RequestedGlobalProperties();
    props.setAnyPartitioning(this.keys);
    return Collections.singletonList(props);
  }
View Full Code Here

Examples of org.apache.flink.compiler.dataproperties.RequestedGlobalProperties

    return new SingleInputPlanNode(node, "Filter ("+node.getPactContract().getName()+")", in, DriverStrategy.FLAT_MAP);
  }

  @Override
  protected List<RequestedGlobalProperties> createPossibleGlobalProperties() {
    return Collections.singletonList(new RequestedGlobalProperties());
  }
View Full Code Here

Examples of org.apache.flink.compiler.dataproperties.RequestedGlobalProperties

    return new SingleInputPlanNode(node, "FlatMap ("+node.getPactContract().getName()+")", in, DriverStrategy.FLAT_MAP);
  }

  @Override
  protected List<RequestedGlobalProperties> createPossibleGlobalProperties() {
    return Collections.singletonList(new RequestedGlobalProperties());
  }
View Full Code Here

Examples of org.apache.flink.compiler.dataproperties.RequestedGlobalProperties

    final InterestingProperties iProps = new InterestingProperties();
   
    {
      final Ordering partitioning = getPactContract().getPartitionOrdering();
      final DataDistribution dataDist = getPactContract().getDataDistribution();
      final RequestedGlobalProperties partitioningProps = new RequestedGlobalProperties();
      if (partitioning != null) {
        if(dataDist != null) {
          partitioningProps.setRangePartitioned(partitioning, dataDist);
        } else {
          partitioningProps.setRangePartitioned(partitioning);
        }
        iProps.addGlobalProperties(partitioningProps);
      }
      iProps.addGlobalProperties(partitioningProps);
    }
View Full Code Here

Examples of org.apache.flink.compiler.dataproperties.RequestedGlobalProperties

      return new SingleInputPlanNode(node, "Partition", in, DriverStrategy.UNARY_NO_OP);
    }

    @Override
    protected List<RequestedGlobalProperties> createPossibleGlobalProperties() {
      RequestedGlobalProperties rgps = new RequestedGlobalProperties();
     
      switch (this.pMethod) {
      case HASH:
        rgps.setHashPartitioned(pKeys.toFieldList());
        break;
      case REBALANCE:
        rgps.setForceRebalancing();
        break;
      case RANGE:
        throw new UnsupportedOperationException("Not yet supported");
      default:
        throw new IllegalArgumentException("Invalid partition method");
View Full Code Here

Examples of org.apache.flink.compiler.dataproperties.RequestedGlobalProperties

 
  @Override
  protected List<GlobalPropertiesPair> createPossibleGlobalProperties() {
    // all properties are possible
    return Collections.singletonList(new GlobalPropertiesPair(
      new RequestedGlobalProperties(), new RequestedGlobalProperties()));
  }
View Full Code Here

Examples of org.apache.flink.compiler.dataproperties.RequestedGlobalProperties

    }
  }

  @Override
  protected List<RequestedGlobalProperties> createPossibleGlobalProperties() {
    return Collections.singletonList(new RequestedGlobalProperties());
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.