Examples of defineInput()


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

     * {@link FlowBlock#isEmpty()}
     */
    @Test
    public void isEmpty_input() {
        FlowGraphGenerator gen = new FlowGraphGenerator();
        gen.defineInput("in");
        gen.defineOperator("op", "in", "out");
        gen.defineOutput("out");
        gen.connect("in", "op").connect("op", "out");

        FlowBlock block = FlowBlock.fromPorts(
View Full Code Here

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

     * {@link FlowBlock#isEmpty()}
     */
    @Test
    public void isEmpty_output() {
        FlowGraphGenerator gen = new FlowGraphGenerator();
        gen.defineInput("in");
        gen.defineOperator("op", "in", "out");
        gen.defineOutput("out");
        gen.connect("in", "op").connect("op", "out");

        FlowBlock block = FlowBlock.fromPorts(
View Full Code Here

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

     * {@link FlowBlock#isReduceBlock()}
     */
    @Test
    public void isReduceBlock_true() {
        FlowGraphGenerator gen = new FlowGraphGenerator();
        gen.defineInput("in");
        gen.defineOperator("op", "in", "out", FlowBoundary.SHUFFLE);
        gen.defineOutput("out");
        gen.connect("in", "op").connect("op", "out");

        FlowBlock block = FlowBlock.fromPorts(
View Full Code Here

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

     * {@link FlowBlock#isReduceBlock()}
     */
    @Test
    public void isReduceBlock_false() {
        FlowGraphGenerator gen = new FlowGraphGenerator();
        gen.defineInput("in");
        gen.defineOperator("op", "in", "out");
        gen.defineOutput("out");
        gen.connect("in", "op").connect("op", "out");

        FlowBlock block = FlowBlock.fromPorts(
View Full Code Here

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

     * {@link FlowBlock#detach()}
     */
    @Test
    public void detach_1() {
        FlowGraphGenerator gen = new FlowGraphGenerator();
        gen.defineInput("in");
        gen.defineOperator("op", "in", "out");
        gen.defineOutput("out");
        gen.connect("in", "op").connect("op", "out");

        FlowBlock block = FlowBlock.fromPorts(
View Full Code Here

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

     * {@link FlowBlock#detach()}
     */
    @Test
    public void detach_2() {
        FlowGraphGenerator gen = new FlowGraphGenerator();
        gen.defineInput("in");
        gen.defineOperator("op1", "in", "out");
        gen.defineOperator("op2", "in", "out");
        gen.defineOutput("out");
        gen.connect("in", "op1").connect("op1", "op2").connect("op2", "out");

View Full Code Here

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

     * {@link FlowBlock#connect(FlowBlock.Output, FlowBlock.Input)}
     */
    @Test
    public void connect() {
        FlowGraphGenerator gen = new FlowGraphGenerator();
        gen.defineInput("in");
        gen.defineOperator("op1", "in", "out");
        gen.defineOperator("op2", "in", "out");
        gen.defineOutput("out");
        gen.connect("in", "op1").connect("op1", "op2").connect("op2", "out");

View Full Code Here

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

     * {@link FlowBlock#isSucceedingReduceBlock()}
     */
    @Test
    public void isSucceedingReduceBlock_true() {
        FlowGraphGenerator gen = new FlowGraphGenerator();
        gen.defineInput("in");
        gen.defineOperator("op1", "in", "out");
        gen.defineOperator("op2", "in", "out", FlowBoundary.SHUFFLE);
        gen.defineOutput("out");
        gen.connect("in", "op1").connect("op1", "op2").connect("op2", "out");

View Full Code Here

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

     * {@link FlowBlock#isSucceedingReduceBlock()}
     */
    @Test
    public void isSucceedingReduceBlock_false() {
        FlowGraphGenerator gen = new FlowGraphGenerator();
        gen.defineInput("in");
        gen.defineOperator("op1", "in", "out");
        gen.defineOperator("op2", "in", "out");
        gen.defineOutput("out");
        gen.connect("in", "op1").connect("op1", "op2").connect("op2", "out");

View Full Code Here

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

     * {@link FlowBlock#isSucceedingReduceBlock()}
     */
    @Test
    public void isSucceedingReduceBlock_empty() {
        FlowGraphGenerator gen = new FlowGraphGenerator();
        gen.defineInput("in");
        gen.defineOperator("op1", "in", "out");
        gen.defineOperator("op2", "in", "out", FlowBoundary.SHUFFLE);
        gen.defineOutput("out");
        gen.connect("in", "op1").connect("op1", "op2").connect("op2", "out");

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.