Package com.asakusafw.compiler.flow.stage

Examples of com.asakusafw.compiler.flow.stage.StageModel$ReduceUnit


     * グループごとの最小値を求めるテスト。
     */
    @Test
    public void withParameter() {
        List<StageModel> stages = compile(GroupSortFlowWithParameter.class);
        StageModel stage = stages.get(0);
        Assume.assumeThat(stage.getReduceUnits().size(), is(1));
        ReduceUnit reduce = stage.getReduceUnits().get(0);
        Fragment fragment = reduce.getFragments().get(0);
        Name name = fragment.getCompiled().getQualifiedName();

        ClassLoader loader = start();
        PortMapper mapper = new PortMapper(fragment);
        MockResult<Ex1> r1 = mapper.add("r1", new Ex1Copier());
        MockResult<Ex1> r2 = mapper.add("r2", new Ex1Copier());

        @SuppressWarnings("unchecked")
        Rendezvous<Writable> f = (Rendezvous<Writable>) create(loader, name, mapper.toArguments());

        Segment segment = stage.getShuffleModel().findSegment(fragment.getInputPorts().get(0));
        SegmentedWritable value = createShuffleValue(loader, stage);

        Ex1 ex1 = new Ex1();
        f.begin();

View Full Code Here

TOP

Related Classes of com.asakusafw.compiler.flow.stage.StageModel$ReduceUnit

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.