Package org.apache.flink.compiler.dataproperties

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


    }
  }

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

    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

    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

    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

      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

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

    }
  }

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

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

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

TOP

Related Classes of org.apache.flink.compiler.dataproperties.RequestedGlobalProperties

Copyright © 2018 www.massapicom. 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.