Examples of Export


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

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

    }

    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

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

        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

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

        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

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

        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

Examples of com.asakusafw.vocabulary.flow.Export

        Type[] types = ctor.getGenericParameterTypes();
        Annotation[][] annotations = ctor.getParameterAnnotations();
        List<Parameter> results = Lists.create();
        for (int i = 0; i < types.length; i++) {
            Import importer = null;
            Export expoter = null;
            for (Annotation a : annotations[i]) {
                if (a.annotationType() == Import.class) {
                    importer = (Import) a;
                } else if (a.annotationType() == Export.class) {
                    expoter = (Export) a;
View Full Code Here

Examples of com.atlassian.labs.speakeasy.commonjs.Export

        Module module = new Module("foo", "foo.js", 0, "/**\n" +
                                          " * Some method\n" +
                                          " */\n" +
                                          "exports.foo = bar;");
        assertEquals(1, module.getExports().size());
        Export export = module.getExports().get("foo");
        assertEquals("foo", export.getName());
        assertEquals("Some method", export.getJsDoc().getDescription());
    }
View Full Code Here

Examples of com.atlassian.labs.speakeasy.commonjs.Export

        Module module = new Module("foo", "foo.js", 0, "/**\n" +
                                          " * Some method\n" +
                                          " */\n\n" +
                                          "exports.foo = bar;");
        assertEquals(1, module.getExports().size());
        Export export = module.getExports().get("foo");
        assertEquals("foo", export.getName());
        assertEquals("Some method", export.getJsDoc().getDescription());
    }
View Full Code Here

Examples of com.atlassian.labs.speakeasy.commonjs.Export

        Module module = new Module("foo", "foo.js", 0, "/**\n" +
                                          " Some method\n" +
                                          " */\n" +
                                          "exports.foo = bar;");
        assertEquals(1, module.getExports().size());
        Export export = module.getExports().get("foo");
        assertEquals("foo", export.getName());
        assertEquals("Some method", export.getJsDoc().getDescription());
    }
View Full Code Here

Examples of com.atlassian.labs.speakeasy.commonjs.Export

                                          " * Some method\n" +
                                          " * Another point\n" +
                                          " */\n" +
                                          "exports.foo = bar;");
        assertEquals(1, module.getExports().size());
        Export export = module.getExports().get("foo");
        assertEquals("foo", export.getName());
        assertEquals("Some method\nAnother point", export.getJsDoc().getDescription());
    }
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.