Package org.apache.flink.api.common

Examples of org.apache.flink.api.common.Plan.accept()


    try {
     
      Plan plan = getTestPlanRightStatic("");
     
      SourceCollectorVisitor sourceCollector = new SourceCollectorVisitor();
      plan.accept(sourceCollector);
     
      for(GenericDataSourceBase<?, ?> s : sourceCollector.getSources()) {
        if(s.getName().equals("bigFile")) {
          this.setSourceStatistics(s, 10000000, 1000);
        }
View Full Code Here


    i1.join(i2, hint).where(new IdentityKeySelector<Long>()).equalTo(new IdentityKeySelector<Long>()).print();
   
    Plan plan = env.createProgramPlan();
   
    // set statistics to the sources
    plan.accept(new Visitor<Operator<?>>() {
      @Override
      public boolean preVisit(Operator<?> visitable) {
        if (visitable instanceof GenericDataSourceBase) {
          GenericDataSourceBase<?, ?> source = (GenericDataSourceBase<?, ?>) visitable;
          setSourceStatistics(source, 10000000, 1000);
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.