Package com.asakusafw.vocabulary.flow.graph

Examples of com.asakusafw.vocabulary.flow.graph.FlowElementResolver


                    CHECKPOINT_NAME,
                    type,
                    true,
                    true,
                    FlowBoundary.STAGE);
            this.resolver = new FlowElementResolver(desc);
            resolver.resolveInput(INPUT_PORT_NAME, in);
        }
View Full Code Here


            builder.declareParameter(Ex1.class);
            builder.addInput("model", Ex1.class);
            builder.addOutput("high", Ex1.class);
            builder.addOutput("low", Ex1.class);
            builder.addOutput("stop", Ex1.class);
            FlowElementResolver resolver = builder.toResolver();
            resolver.resolveInput("model", model);
            this.high = resolver.resolveOutput("high");
            this.low = resolver.resolveOutput("low");
            this.stop = resolver.resolveOutput("stop");
        }
View Full Code Here

            builder.addInput("model", Ex1.class);
            builder.addOutput("high", Ex1.class);
            builder.addOutput("low", Ex1.class);
            builder.addOutput("stop", Ex1.class);
            builder.addParameter("parameter", int.class, parameter);
            FlowElementResolver resolver = builder.toResolver();
            resolver.resolveInput("model", model);
            this.high = resolver.resolveOutput("high");
            this.low = resolver.resolveOutput("low");
            this.stop = resolver.resolveOutput("stop");
        }
View Full Code Here

            builder.declare(LoggingFlow.class, LoggingFlowImpl.class, "simple");
            builder.declareParameter(Ex1.class);
            builder.addInput("model", Ex1.class);
            builder.addOutput("out", Ex1.class);
            builder.addAttribute(ObservationCount.AT_LEAST_ONCE);
            FlowElementResolver resolver = builder.toResolver();
            resolver.resolveInput("model", model);
            this.out = resolver.resolveOutput("out");
        }
View Full Code Here

            builder.addInput("model", Ex1.class, new ShuffleKey(Arrays.asList(new String[]{"string"}), Arrays.asList(new
                    ShuffleKey.Order[]{})));
            builder.addOutput("updated", Ex1.class);
            builder.addOutput("missed", Ex1.class);
            builder.addAttribute(FlowBoundary.SHUFFLE);
            FlowElementResolver resolver = builder.toResolver();
            resolver.resolveInput("master", master);
            resolver.resolveInput("model", model);
            this.updated = resolver.resolveOutput("updated");
            this.missed = resolver.resolveOutput("missed");
        }
View Full Code Here

                    new ShuffleKey.Order[]{})));
            builder0.addOutput("updated", Ex1.class);
            builder0.addOutput("missed", Ex1.class);
            builder0.addParameter("parameter", int.class, parameter);
            builder0.addAttribute(FlowBoundary.SHUFFLE);
            FlowElementResolver resolver0 = builder0.toResolver();
            resolver0.resolveInput("master", master);
            resolver0.resolveInput("model", model);
            this.updated = resolver0.resolveOutput("updated");
            this.missed = resolver0.resolveOutput("missed");
        }
View Full Code Here

                    new ShuffleKey.Order[]{})));
            builder1.addOutput("updated", Ex1.class);
            builder1.addOutput("missed", Ex1.class);
            builder1.addAttribute(new OperatorHelper("selector", Arrays.asList(new Class<?>[]{List.class, Ex1.class})));
            builder1.addAttribute(FlowBoundary.SHUFFLE);
            FlowElementResolver resolver1 = builder1.toResolver();
            resolver1.resolveInput("master", master);
            resolver1.resolveInput("model", model);
            this.updated = resolver1.resolveOutput("updated");
            this.missed = resolver1.resolveOutput("missed");
        }
View Full Code Here

            builder.declareParameter(Result.class);
            builder.declareParameter(Result.class);
            builder.addInput("joined", ExJoined.class);
            builder.addOutput("ex1", Ex1.class);
            builder.addOutput("ex2", Ex2.class);
            FlowElementResolver resolver = builder.toResolver();
            resolver.resolveInput("joined", joined);
            this.ex1 = resolver.resolveOutput("ex1");
            this.ex2 = resolver.resolveOutput("ex2");
        }
View Full Code Here

            builder0.addInput("ex2", Ex2.class, new ShuffleKey(Arrays.asList(new String[]{"value"}), Arrays.asList(new
                    ShuffleKey.Order[]{})));
            builder0.addOutput("joined", ExJoined.class);
            builder0.addOutput("missed", Ex2.class);
            builder0.addAttribute(FlowBoundary.SHUFFLE);
            FlowElementResolver resolver0 = builder0.toResolver();
            resolver0.resolveInput("ex1", ex1);
            resolver0.resolveInput("ex2", ex2);
            this.joined = resolver0.resolveOutput("joined");
            this.missed = resolver0.resolveOutput("missed");
        }
View Full Code Here

            builder0.addInput("ex2", Ex2.class, new ShuffleKey(Arrays.asList(new String[]{"value"}), Arrays.asList(new
                    ShuffleKey.Order[]{})));
            builder0.addOutput("joined", ExJoined2.class);
            builder0.addOutput("missed", Ex2.class);
            builder0.addAttribute(FlowBoundary.SHUFFLE);
            FlowElementResolver resolver0 = builder0.toResolver();
            resolver0.resolveInput("ex1", ex1);
            resolver0.resolveInput("ex2", ex2);
            this.joined = resolver0.resolveOutput("joined");
            this.missed = resolver0.resolveOutput("missed");
        }
View Full Code Here

TOP

Related Classes of com.asakusafw.vocabulary.flow.graph.FlowElementResolver

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.