Examples of outputs()


Examples of com.asakusafw.compiler.flow.FlowGraphGenerator.outputs()

        assertThat(block.getElements(), is(gen.getAsSet("op1", "op2")));
        Set<FlowElementInput> inputs = input(block.getBlockInputs());
        Set<FlowElementOutput> outputs = output(block.getBlockOutputs());
        assertThat(inputs, is(gen.inputs("op1", "op2")));
        assertThat(outputs, is(gen.outputs("op1", "op2")));
    }

    /**
     * {@link FlowPath#createBlock(FlowGraph, int, boolean, boolean)}
     */
 
View Full Code Here

Examples of com.asakusafw.compiler.flow.FlowGraphGenerator.outputs()

        FlowPath path = FlowGraphUtil.getSucceedBoundaryPath(gen.get("in"));

        FlowBlock b0 = path.createBlock(gen.toGraph(), 0, true, true);
        assertThat(b0.getElements(), is(gen.getAsSet("in", "out")));
        assertThat(input(b0.getBlockInputs()), is(gen.inputs()));
        assertThat(output(b0.getBlockOutputs()), is(gen.outputs()));

        FlowBlock b1 = path.createBlock(gen.toGraph(), 0, false, true);
        assertThat(b1.getElements(), is(gen.getAsSet("out")));
        assertThat(input(b1.getBlockInputs()), is(gen.inputs("out")));
        assertThat(output(b1.getBlockOutputs()), is(gen.outputs()));
View Full Code Here

Examples of com.asakusafw.compiler.flow.FlowGraphGenerator.outputs()

        assertThat(output(b0.getBlockOutputs()), is(gen.outputs()));

        FlowBlock b1 = path.createBlock(gen.toGraph(), 0, false, true);
        assertThat(b1.getElements(), is(gen.getAsSet("out")));
        assertThat(input(b1.getBlockInputs()), is(gen.inputs("out")));
        assertThat(output(b1.getBlockOutputs()), is(gen.outputs()));

        FlowBlock b2 = path.createBlock(gen.toGraph(), 0, true, false);
        assertThat(b2.getElements(), is(gen.getAsSet("in")));
        assertThat(input(b2.getBlockInputs()), is(gen.inputs()));
        assertThat(output(b2.getBlockOutputs()), is(gen.outputs("in")));
View Full Code Here

Examples of com.asakusafw.compiler.flow.FlowGraphGenerator.outputs()

        assertThat(output(b1.getBlockOutputs()), is(gen.outputs()));

        FlowBlock b2 = path.createBlock(gen.toGraph(), 0, true, false);
        assertThat(b2.getElements(), is(gen.getAsSet("in")));
        assertThat(input(b2.getBlockInputs()), is(gen.inputs()));
        assertThat(output(b2.getBlockOutputs()), is(gen.outputs("in")));

        try {
            path.createBlock(gen.toGraph(), 0, false, false);
            fail();
        } catch (IllegalArgumentException e) {
View Full Code Here

Examples of io.crate.planner.projection.FilterProjection.outputs()

        EqOperator op = (EqOperator)functions.get(
                new FunctionIdent(EqOperator.NAME, ImmutableList.<DataType>of(DataTypes.INTEGER, DataTypes.INTEGER)));
        Function function = new Function(
                op.info(), Arrays.<Symbol>asList(Literal.newLiteral(2), new InputColumn(1)));
        FilterProjection projection = new FilterProjection(function);
        projection.outputs(Arrays.<Symbol>asList(new InputColumn(0), new InputColumn(1)));

        CollectingProjector collectingProjector = new CollectingProjector();
        Projector projector = visitor.process(projection);
        projector.registerUpstream(null);
        projector.downstream(collectingProjector);
View Full Code Here

Examples of io.crate.planner.projection.Projection.outputs()

                                 List<Projection> projections,
                                 int columnIdx,
                                 int projectionIdx,
                                 List<DataType> inputTypes) {
        final Projection projection = projections.get(projectionIdx);
        final Symbol symbol = projection.outputs().get(columnIdx);

        if (symbol instanceof DataTypeSymbol) {
            streamers[columnIdx] = ((DataTypeSymbol) symbol).valueType().streamer();
        } else if (symbol.symbolType() == SymbolType.AGGREGATION) {
            Aggregation aggregation = (Aggregation)symbol;
View Full Code Here

Examples of io.crate.planner.projection.TopNProjection.outputs()

            TopNProjection topNProjection = new TopNProjection(3,
                    TopN.NO_OFFSET,
                    Arrays.<Symbol>asList(new InputColumn(0), new InputColumn(1)),
                    new boolean[]{true, true},
                    new Boolean[] { null, null });
            topNProjection.outputs(Arrays.<Symbol>asList(new InputColumn(0), new InputColumn(1)));

            MergeNode mergeNode = new MergeNode("merge", 2);
            mergeNode.projections(Arrays.<Projection>asList(
                    groupProjection,
                    topNProjection
View Full Code Here

Examples of jcgp.backend.resources.Resources.outputs()

        guiNodes[r][c] = new GUINode(this, chromosome.getNode(r, c), lines, gui);
      }
      content.getChildren().addAll(guiNodes[r]);
    }
    // outputs
    guiOutputs = new GUIOutput[resources.outputs()];
    for (int i = 0; i < guiOutputs.length; i++) {
      xPos = ((resources.columns() + 1) * (2 * Constants.NODE_RADIUS + Constants.SPACING));
      yPos = (chromosome.getOutput(i).getIndex() * (2 * Constants.NODE_RADIUS + Constants.SPACING)) + Constants.NODE_RADIUS;
      // make the line
      Line line = new Line(xPos, yPos, xPos, yPos);
View Full Code Here

Examples of jcgp.backend.resources.Resources.outputs()

    // get test cases from problem
    ObservableList<TestCase<Object>> testCaseList = testCaseProblem.getTestCases();
   
    // prepare input and output columns
    ArrayList<TableColumn<TestCase<Object>, String>> inputs = new ArrayList<TableColumn<TestCase<Object>, String>>(resources.inputs());
    ArrayList<TableColumn<TestCase<Object>, String>> outputs = new ArrayList<TableColumn<TestCase<Object>, String>>(resources.outputs());

    // create input columns
    TableColumn<TestCase<Object>, String> tc;
    for (int i = 0; i < resources.inputs(); i++) {
      tc = new TableColumn<TestCase<Object>, String>("I: " + i);
View Full Code Here

Examples of oms3.ComponentAccess.outputs()

        Collection<Access> inputs = cA.inputs();
        StringBuilder sbTmp = new StringBuilder();
        collectParameters(sbTmp, inputs);
        toTable(sb, sbTmp, "Input parameters");
        sb.append(NEWLINE);
        Collection<Access> outputs = cA.outputs();
        sbTmp = new StringBuilder();
        collectParameters(sbTmp, outputs);
        toTable(sb, sbTmp, "Output parameters");
        sb.append("</blockquote>");
        sb.append(NEWLINE);
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.