Package org.apache.flink.client.program.PackagedProgram

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

Related Classes of org.apache.flink.client.program.PackagedProgram.PreviewPlanEnvironment

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.