org.apache.flink.examples.java.relational.WebLogAnalysis Java Examples
The following examples show how to use
org.apache.flink.examples.java.relational.WebLogAnalysis.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: DumpCompiledPlanTest.java From Flink-CEPplus with Apache License 2.0 | 6 votes |
@Test public void dumpWebLogAnalysis() { // prepare the test environment PreviewPlanEnvironment env = new PreviewPlanEnvironment(); env.setAsContext(); try { WebLogAnalysis.main(new String[] { "--documents", IN_FILE, "--ranks", IN_FILE, "--visits", OUT_FILE, "--output", "123"}); } catch (OptimizerPlanEnvironment.ProgramAbortException pae) { // all good. } catch (Exception e) { e.printStackTrace(); Assert.fail("WebLogAnalysis failed with an exception"); } dump(env.getPlan()); }
Example #2
Source File: DumpCompiledPlanTest.java From flink with Apache License 2.0 | 6 votes |
@Test public void dumpWebLogAnalysis() { // prepare the test environment PreviewPlanEnvironment env = new PreviewPlanEnvironment(); env.setAsContext(); try { WebLogAnalysis.main(new String[] { "--documents", IN_FILE, "--ranks", IN_FILE, "--visits", OUT_FILE, "--output", "123"}); } catch (OptimizerPlanEnvironment.ProgramAbortException pae) { // all good. } catch (Exception e) { e.printStackTrace(); Assert.fail("WebLogAnalysis failed with an exception"); } dump(env.getPlan()); }
Example #3
Source File: WebLogAnalysisITCase.java From Flink-CEPplus with Apache License 2.0 | 5 votes |
@Override protected void testProgram() throws Exception { WebLogAnalysis.main(new String[] { "--documents", docsPath, "--ranks", ranksPath, "--visits", visitsPath, "--output", resultPath}); }
Example #4
Source File: WebLogAnalysisITCase.java From flink with Apache License 2.0 | 5 votes |
@Override protected void testProgram() throws Exception { WebLogAnalysis.main(new String[] { "--documents", docsPath, "--ranks", ranksPath, "--visits", visitsPath, "--output", resultPath}); }
Example #5
Source File: WebLogAnalysisITCase.java From flink with Apache License 2.0 | 5 votes |
@Override protected void testProgram() throws Exception { WebLogAnalysis.main(new String[] { "--documents", docsPath, "--ranks", ranksPath, "--visits", visitsPath, "--output", resultPath}); }
Example #6
Source File: PreviewPlanDumpTest.java From flink with Apache License 2.0 | 5 votes |
@Test public void dumpWebLogAnalysis() throws Exception { verifyPlanDump(WebLogAnalysis.class, "--documents", IN_FILE, "--ranks", IN_FILE, "--visits", OUT_FILE, "--output", "123"); }
Example #7
Source File: DumpCompiledPlanTest.java From flink with Apache License 2.0 | 5 votes |
@Test public void dumpWebLogAnalysis() throws Exception { verifyOptimizedPlan(WebLogAnalysis.class, "--documents", IN_FILE, "--ranks", IN_FILE, "--visits", OUT_FILE, "--output", "123"); }