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

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


            ExternalIoDescriptionProcessor proc = environment.getExternals().findProcessor(description);
            if (proc == null) {
                error("{0}は不明なインポーターを利用しています", desc);
                continue;
            }
            Import prologue = new Import(source, description, proc);
            LOG.debug("入力{}が追加されます", prologue);
            results.add(prologue);
        }
        Set<InputDescription> sideData = Sets.create();
        for (StageModel stage : stageModels) {
            sideData.addAll(stage.getSideDataInputs());
        }
        sideData.removeAll(saw);
        for (InputDescription input : sideData) {
            ExternalIoDescriptionProcessor proc = environment.getExternals().findProcessor(input);
            if (proc == null) {
                error("{0}は不明なインポーターを利用しています", input);
                continue;
            }
            Import prologue = new Import(input, proc);
            LOG.debug("サイドデータ入力{}が追加されます", prologue);
            results.add(prologue);
        }
        return results;
    }
View Full Code Here


        tester.framework().copy(compilerOutput, targetDirectory);
    }

    private void put(BatchInfo info, String name, String... values) {
        try {
            Import importer = tester.getImporter(info, name);
            ModelOutput<Simple> output = tester.openOutput(Simple.class, importer);
            try {
                Simple model = new Simple();
                for (String value : values) {
                    model.setValueAsString(value);
View Full Code Here

        assertThat(jobflow.getStages().size(), is(1));
        assertThat(jobflow.getImports().size(), is(1));
        assertThat(jobflow.getExports().size(), is(1));

        Import prologue = jobflow.getImports().get(0);
        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(
View Full Code Here

        assertThat(jobflow.getStages().size(), is(1));
        assertThat(jobflow.getImports().size(), is(1));
        assertThat(jobflow.getExports().size(), is(1));

        Import prologue = jobflow.getImports().get(0);
        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(
View Full Code Here

        assertThat(jobflow.getStages().size(), is(2));
        assertThat(jobflow.getImports().size(), is(1));
        assertThat(jobflow.getExports().size(), is(1));

        Import prologue = jobflow.getImports().get(0);
        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(
View Full Code Here

TOP

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

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.