Package com.foundationdb.qp.rowtype

Examples of com.foundationdb.qp.rowtype.RowType


                filter_Default(
                    groupScan_Default(coi),
                    Collections.singleton(customerRowType)),
                project,
                0, pipelineMap(), 1);
        RowType projectRowType = project.rowType();
        Row[] expected = new Row[]{
            row(projectRowType, 1L, 100L),
            row(projectRowType, 1L, 101L),
            row(projectRowType, 2L, 200L),
            row(projectRowType, 2L, 201L),
View Full Code Here


                        field(orderRowType, 1) /* order.cid */,
                        Comparison.EQ,
                        boundField(customerRowType, 0, 0) /* customer.cid */, castResolver())),
            orderRowType,
            Arrays.asList(boundField(customerRowType, 0, 0) /* customer.cid */, field(orderRowType, 0) /* order.oid */));
        RowType projectRowType = project.rowType();
        Operator plan =
            map_NestedLoops(
                filter_Default(
                    groupScan_Default(coi),
                    Collections.singleton(customerRowType)),
View Full Code Here

    {
        Operator plan = project_DefaultTest(groupScan_Default(coi),
                                                customerRowType,
                                                Arrays.asList(field(customerRowType, 1), field(customerRowType, 0)));
        Cursor cursor = cursor(plan, queryContext, queryBindings);
        RowType projectedRowType = plan.rowType();
        Row[] expected = new Row[]{
            row(projectedRowType, "northbridge", 1L),
            row(orderRowType, 11L, 1L, "ori"),
            row(itemRowType, 111L, 11L),
            row(itemRowType, 112L, 11L),
View Full Code Here

        // Tests projection of null too
        Operator flattenCO = flatten_HKeyOrdered(groupScan_Default(coi),
                                                         customerRowType,
                                                         orderRowType,
                                                         FULL_JOIN);
        RowType coType = flattenCO.rowType();
        Operator flattenCOI = flatten_HKeyOrdered(flattenCO,
                                                          coType,
                                                          itemRowType,
                                                          FULL_JOIN);
        RowType coiType = flattenCOI.rowType();
        Operator plan =
            project_DefaultTest(flattenCOI,
                            coiType,
                            Arrays.asList(
                                field(coiType, 1), // customer name
                                field(coiType, 4), // salesman
                                field(coiType, 5))); // iid
        Cursor cursor = cursor(plan, queryContext, queryBindings);
        RowType projectedRowType = plan.rowType();
        Row[] expected = new Row[]{
            row(projectedRowType, "northbridge", "ori", 111L),
            row(projectedRowType, "northbridge", "ori", 112L),
            row(projectedRowType, "northbridge", "david", 121L),
            row(projectedRowType, "northbridge", "david", 122L),
View Full Code Here

        // Tests projection of null too
        Operator flattenCO = flatten_HKeyOrdered(groupScan_Default(coi),
                                                         customerRowType,
                                                         orderRowType,
                                                         FULL_JOIN);
        RowType coType = flattenCO.rowType();
        Operator flattenCOI = flatten_HKeyOrdered(flattenCO,
                                                          coType,
                                                          itemRowType,
                                                          FULL_JOIN);
        RowType coiType = flattenCOI.rowType();
        Operator plan =
            project_DefaultTest(flattenCOI,
                            coiType,
                            Arrays.asList(
                                field(coiType, 1), // customer name
                                field(coiType, 4), // salesman
                                field(coiType, 5))); // iid
        final RowType projectedRowType = plan.rowType();
        CursorLifecycleTestCase testCase = new CursorLifecycleTestCase()
        {
            @Override
            public Row[] firstExpectedRows()
            {
View Full Code Here

                    groupScan_Default(coi),
                    Arrays.asList(customerRowType, orderRowType, itemRowType)),
                customerRowType,
                orderRowType,
                INNER_JOIN);
        RowType coRowType = plan.rowType();
        Cursor cursor = cursor(plan, queryContext, queryBindings);
        Row[] expected = new Row[]{
            row(coRowType, 1L, "northbridge", 11L, 1L, "ori"),
            row(itemRowType, 111L, 11L),
            row(itemRowType, 112L, 11L),
View Full Code Here

                    groupScan_Default(coi),
                    Arrays.asList(customerRowType, orderRowType, itemRowType)),
                orderRowType,
                itemRowType,
                INNER_JOIN);
        RowType oiRowType = plan.rowType();
        Cursor cursor = cursor(plan, queryContext, queryBindings);
        Row[] expected = new Row[]{
            row(customerRowType, 1L, "northbridge"),
            row(oiRowType, 11L, 1L, "ori", 111L, 11L),
            row(oiRowType, 11L, 1L, "ori", 112L, 11L),
View Full Code Here

                    groupScan_Default(coi),
                    Arrays.asList(customerRowType, orderRowType, itemRowType)),
                customerRowType,
                orderRowType,
                LEFT_JOIN);
        RowType coRowType = plan.rowType();
        Cursor cursor = cursor(plan, queryContext, queryBindings);
        Row[] expected = new Row[]{
            row(oKey(1L, 11L), coRowType, 1L, "northbridge", 11L, 1L, "ori"),
            row(iKey(1L, 11L, 111L), itemRowType, 111L, 11L),
            row(iKey(1L, 11L, 112L), itemRowType, 112L, 11L),
View Full Code Here

                    groupScan_Default(coi),
                    Arrays.asList(customerRowType, orderRowType, itemRowType)),
                orderRowType,
                itemRowType,
                LEFT_JOIN);
        RowType oiRowType = plan.rowType();
        Cursor cursor = cursor(plan, queryContext, queryBindings);
        Row[] expected = new Row[]{
            row(customerRowType, 1L, "northbridge"),
            row(oiRowType, 11L, 1L, "ori", 111L, 11L),
            row(oiRowType, 11L, 1L, "ori", 112L, 11L),
View Full Code Here

                    groupScan_Default(coi),
                    Arrays.asList(customerRowType, orderRowType, itemRowType)),
                customerRowType,
                orderRowType,
                RIGHT_JOIN);
        RowType coRowType = plan.rowType();
        Cursor cursor = cursor(plan, queryContext, queryBindings);
        Row[] expected = new Row[]{
            row(coRowType, 1L, "northbridge", 11L, 1L, "ori"),
            row(itemRowType, 111L, 11L),
            row(itemRowType, 112L, 11L),
View Full Code Here

TOP

Related Classes of com.foundationdb.qp.rowtype.RowType

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.