Package com.asakusafw.vocabulary.flow.graph

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


    public SideDataKindFlowAnalyzer(
            LineEndProcessor.Context context,
            JoinResourceDescription resource) {
        Precondition.checkMustNotBeNull(context, "context"); //$NON-NLS-1$
        Precondition.checkMustNotBeNull(resource, "resource"); //$NON-NLS-1$
        OperatorHelper selector = context.getOperatorDescription().getAttribute(OperatorHelper.class);
        this.resource = resource;
        if (selector == null) {
            processMasterFirst(context);
        } else {
            processMasterSelection(context, selector);
View Full Code Here


     * @param context 文脈オブジェクト
     * @throws IllegalArgumentException 引数に{@code null}が指定された場合
     */
    public MasterKindFlowAnalyzer(RendezvousProcessor.Context context) {
        Precondition.checkMustNotBeNull(context, "context"); //$NON-NLS-1$
        OperatorHelper selector = context.getOperatorDescription().getAttribute(OperatorHelper.class);
        if (selector == null) {
            processMasterFirst(context);
        } else {
            processMasterSelection(context, selector);
        }
View Full Code Here

                    new ShuffleKey.Order[]{})));
            builder1.addInput("model", Ex1.class, new ShuffleKey(Arrays.asList(new String[]{"string"}), Arrays.asList(
                    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");
View Full Code Here

                    ShuffleKey.Order[]{})));
            builder1.addInput("ex2", Ex2.class, new ShuffleKey(Arrays.asList(new String[]{"value"}), Arrays.asList(new
                    ShuffleKey.Order[]{})));
            builder1.addOutput("joined", ExJoined.class);
            builder1.addOutput("missed", Ex2.class);
            builder1.addAttribute(new OperatorHelper("selector", Arrays.asList(new Class<?>[]{List.class, Ex2.class})));
            builder1.addAttribute(FlowBoundary.SHUFFLE);
            FlowElementResolver resolver1 = builder1.toResolver();
            resolver1.resolveInput("ex1", ex1);
            resolver1.resolveInput("ex2", ex2);
            this.joined = resolver1.resolveOutput("joined");
View Full Code Here

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

            builder1.addInput("model", Ex1.class, new ShuffleKey(Arrays.asList(new String[]{"string"}), Arrays.asList(
                    new ShuffleKey.Order[]{})));
            builder1.addOutput("high", Ex1.class);
            builder1.addOutput("low", Ex1.class);
            builder1.addOutput("stop", 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.high = resolver1.resolveOutput("high");
View Full Code Here

                    new ShuffleKey.Order[]{})));
            builder2.addOutput("high", Ex1.class);
            builder2.addOutput("low", Ex1.class);
            builder2.addOutput("stop", Ex1.class);
            builder2.addParameter("parameter", int.class, parameter);
            builder2.addAttribute(new OperatorHelper("selector", Arrays.asList(new Class<?>[]{List.class, Ex1.class})));
            builder2.addAttribute(FlowBoundary.SHUFFLE);
            FlowElementResolver resolver2 = builder2.toResolver();
            resolver2.resolveInput("master", master);
            resolver2.resolveInput("model", model);
            this.high = resolver2.resolveOutput("high");
View Full Code Here

                    new ShuffleKey.Order[]{})));
            builder3.addOutput("high", Ex1.class);
            builder3.addOutput("low", Ex1.class);
            builder3.addOutput("stop", Ex1.class);
            builder3.addParameter("parameter", int.class, parameter);
            builder3.addAttribute(new OperatorHelper("selectorWithParameter", Arrays.asList(new Class<?>[]{List.class,
                        Ex1.class, int.class})));
            builder3.addAttribute(FlowBoundary.SHUFFLE);
            FlowElementResolver resolver3 = builder3.toResolver();
            resolver3.resolveInput("master", master);
            resolver3.resolveInput("model", model);
View Full Code Here

TOP

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

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.