Examples of PreviewPlanEnvironment


Examples of org.apache.flink.client.program.PackagedProgram.PreviewPlanEnvironment

  }
 
  @Test
  public void dumpIterativeKMeans() {
    // prepare the test environment
    PreviewPlanEnvironment env = new PreviewPlanEnvironment();
    env.setAsContext();
    try {
      // <points path> <centers path> <result path> <num iterations
      KMeans.main(new String[] {IN_FILE, IN_FILE, OUT_FILE, "123"});
    } catch(ProgramAbortException pae) {
      // all good.
    } catch (Exception e) {
      e.printStackTrace();
      Assert.fail("KMeans failed with an exception");
    }
    dump(env.getPlan());
  }
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.