Package com.asakusafw.compiler.testing

Examples of com.asakusafw.compiler.testing.JobflowInfo


     * @throws Exception if failed
     */
    @Test
    public void input_tiny() throws Exception {
        tester.options().setHashJoinForTiny(true);
        JobflowInfo info = tester.compileJobflow(TinyInputJob.class);

        ModelOutput<Ex2> s10 = openOutput(Ex2.class, Location.fromPath("target/testing/in/tiny1-0", '/'));
        writeEx2(s10, 1, 2);

        ModelOutput<Ex2> s20 = openOutput(Ex2.class, Location.fromPath("target/testing/in/tiny2-0", '/'));
View Full Code Here


     * @throws Exception if failed
     */
    @Test
    public void input_mixed() throws Exception {
        tester.options().setHashJoinForTiny(true);
        JobflowInfo info = tester.compileJobflow(MixedInputJob.class);

        ModelOutput<Ex1> s10 = openOutput(Ex1.class, Location.fromPath("target/testing/in/normal1-0", '/'));
        writeEx1(s10, 1, 2);
        ModelOutput<Ex1> s20 = openOutput(Ex1.class, Location.fromPath("target/testing/in/normal2-0", '/'));
        writeEx1(s20, 3, 4);
View Full Code Here

    @Test
    public void output_single() throws Exception {
        tester.options().putExtraAttribute(
                HadoopFileIoProcessor.OPTION_EXPORTER_ENABLED,
                GenericOptionValue.ENABLED.getSymbol());
        JobflowInfo info = tester.compileJobflow(SingleOutputJob.class);

        ModelOutput<Ex1> source = tester.openOutput(Ex1.class, tester.getImporter(info, "input"));
        writeTestData(source);
        source.close();
View Full Code Here

    @Test
    public void output_multiple() throws Exception {
        tester.options().putExtraAttribute(
                HadoopFileIoProcessor.OPTION_EXPORTER_ENABLED,
                GenericOptionValue.ENABLED.getSymbol());
        JobflowInfo info = tester.compileJobflow(MultipleOutputJob.class);

        ModelOutput<Ex1> source = tester.openOutput(Ex1.class, tester.getImporter(info, "input"));
        writeTestData(source);
        source.close();
View Full Code Here

    @Test
    public void output_independent() throws Exception {
        tester.options().putExtraAttribute(
                HadoopFileIoProcessor.OPTION_EXPORTER_ENABLED,
                GenericOptionValue.ENABLED.getSymbol());
        JobflowInfo info = tester.compileJobflow(IndependentOutputJob.class);

        ModelOutput<Ex1> source = tester.openOutput(Ex1.class, tester.getImporter(info, "input"));
        writeTestData(source);
        source.close();
View Full Code Here

    @Test
    public void output_nested() throws Exception {
        tester.options().putExtraAttribute(
                HadoopFileIoProcessor.OPTION_EXPORTER_ENABLED,
                GenericOptionValue.ENABLED.getSymbol());
        JobflowInfo info = tester.compileJobflow(NestedOutputJob.class);

        ModelOutput<Ex1> source = tester.openOutput(Ex1.class, tester.getImporter(info, "input"));
        writeTestData(source);
        source.close();
View Full Code Here

TOP

Related Classes of com.asakusafw.compiler.testing.JobflowInfo

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.