Package com.asakusafw.compiler.flow.jobflow.JobflowModel

Examples of com.asakusafw.compiler.flow.jobflow.JobflowModel.Export


            ExternalIoDescriptionProcessor proc = environment.getExternals().findProcessor(description);
            if (proc == null) {
                error("{0}は不明なエクスポーターを利用しています", desc);
                continue;
            }
            Export epilogue = new Export(
                    Collections.singletonList(target),
                    description,
                    proc);
            results.add(epilogue);
            LOG.debug("出力{}が追加されます", epilogue);
View Full Code Here


    }

    private List<String> get(BatchInfo info, String name) {
        try {
            List<String> results = new ArrayList<String>();
            Export exporter = tester.getExporter(info, name);
            for (Location location : exporter.getResolvedLocations()) {
                ModelInput<Simple> input = tester.openInput(Simple.class, location);
                try {
                    Simple model = new Simple();
                    while (input.readTo(model)) {
                        results.add(model.getValueAsString());
View Full Code Here

        assertThat(prologue.getDescription().getName(), is("ex1"));
        assertThat(
                prologue.getDescription().getImporterDescription().getClass(),
                is((Object) Ex1MockImporterDescription.class));

        Export epilogue = jobflow.getExports().get(0);
        assertThat(epilogue.getDescription().getName(), is("ex1"));
        assertThat(
                epilogue.getDescription().getExporterDescription().getClass(),
                is((Object) Ex1MockExporterDescription.class));

        Stage stage = jobflow.getStages().get(0);
        assertThat(stage.getProcesses().size(), is(1));
        assertThat(stage.getReduceOrNull(), is(nullValue()));
View Full Code Here

        assertThat(prologue.getDescription().getName(), is("ex1"));
        assertThat(
                prologue.getDescription().getImporterDescription().getClass(),
                is((Object) Ex1MockImporterDescription.class));

        Export epilogue = jobflow.getExports().get(0);
        assertThat(epilogue.getDescription().getName(), is("exs"));
        assertThat(
                epilogue.getDescription().getExporterDescription().getClass(),
                is((Object) ExSummarizedMockExporterDescription.class));

        Stage stage = jobflow.getStages().get(0);
        assertThat(stage.getProcesses().size(), is(1));
        assertThat(stage.getReduceOrNull(), not(nullValue()));
View Full Code Here

        assertThat(prologue.getDescription().getName(), is("ex1"));
        assertThat(
                prologue.getDescription().getImporterDescription().getClass(),
                is((Object) Ex1MockImporterDescription.class));

        Export epilogue = jobflow.getExports().get(0);
        assertThat(epilogue.getDescription().getName(), is("ex1"));
        assertThat(
                epilogue.getDescription().getExporterDescription().getClass(),
                is((Object) Ex1MockExporterDescription.class));

        Graph<Stage> dep = jobflow.getDependencyGraph();
        Set<Stage> heads = Graphs.collectHeads(dep);
        Set<Stage> tails = Graphs.collectTails(dep);

        assertThat(heads.size(), is(1));
        assertThat(tails.size(), is(1));

        Stage st1 = tails.iterator().next();
        Stage st2 = heads.iterator().next();

        assertThat(st1, not(equalTo(st2)));

        List<Process> st1p = st1.getProcesses();
        assertThat(st1p.size(), is(1));
        assertThat(st1p.get(0).getResolvedSources().contains(prologue), is(true));

        List<Delivery> st2d = st2.getDeliveries();
        assertThat(st2d.size(), is(1));
        assertThat(epilogue.getResolvedSources().contains(st2d.get(0)), is(true));
    }
View Full Code Here

TOP

Related Classes of com.asakusafw.compiler.flow.jobflow.JobflowModel.Export

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.