Package com.foundationdb.qp.rowtype

Examples of com.foundationdb.qp.rowtype.RowType


                    groupScan_Default(coi),
                    Arrays.asList(customerRowType, orderRowType, itemRowType)),
                orderRowType,
                itemRowType,
                RIGHT_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,
                FULL_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,
                FULL_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,
                FULL_JOIN, KEEP_PARENT, KEEP_CHILD);
        RowType coRowType = plan.rowType();
        Cursor cursor = cursor(plan, queryContext, queryBindings);
        Row[] expected = new Row[]{
            row(customerRowType, 1L, "northbridge"),
            row(orderRowType, 11L, 1L, "ori"),
            row(coRowType, 1L, "northbridge", 11L, 1L, "ori"),
View Full Code Here

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

                    groupScan_Default(coi),
                    Arrays.asList(customerRowType, orderRowType, itemRowType)),
                orderRowType,
                itemRowType,
                FULL_JOIN);
        final RowType oiRowType = plan.rowType();
        CursorLifecycleTestCase testCase = new CursorLifecycleTestCase()
        {
            @Override
            public Row[] firstExpectedRows()
            {
View Full Code Here

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

    @Test
    // Inspired by bug 869396
    public void testIndexScanUnderMapNestedLoopsUsedAsInnerLoopOfAnotherMapNestedLoops()
    {
        RowType cidValueRowType = schema.newValuesType(MNumeric.INT.instance(true));
        List<ExpressionGenerator> expressions = Arrays.asList(boundField(cidValueRowType, 1, 0));
        IndexBound cidBound =
            new IndexBound(
                new RowBasedUnboundExpressions(customerCidIndexRowType, expressions, true),
                new SetColumnSelector(0));
View Full Code Here

    }

    @Test
    public void testDeepMapLimit()
    {
        RowType intRowType = schema.newValuesType(MNumeric.INT.instance(true));
        List<ExpressionGenerator> expressions = Arrays.asList(boundField(intRowType, 0, 0), boundField(intRowType, 1, 0), field(intRowType, 0));
        Operator inside =
            project_DefaultTest(
                valuesScan_Default(
                    bindableExpressions(intRow(intRowType, 1),
                                        intRow(intRowType, 2),
                                        intRow(intRowType, 3)),
                    intRowType),
                intRowType, expressions);
        RowType insideRowType = inside.rowType();
        Operator plan =
            map_NestedLoops(
                valuesScan_Default(
                    bindableExpressions(intRow(intRowType, 100),
                                        intRow(intRowType, 200),
View Full Code Here

    }

    @Test
    public void testLeftDeepMap()
    {
        RowType intRowType = schema.newValuesType(MNumeric.INT.instance(true));
        List<ExpressionGenerator> outerExprs = Arrays.asList(boundField(intRowType, 0, 0), field(intRowType, 0));
        Operator middle =
            project_DefaultTest(
                valuesScan_Default(
                    bindableExpressions(intRow(intRowType, 10),
                                        intRow(intRowType, 20)),
                    intRowType),
                intRowType, outerExprs);
        RowType outerRowType = middle.rowType();
        Operator outer =
            map_NestedLoops(
                valuesScan_Default(
                    bindableExpressions(intRow(intRowType, 100),
                                        intRow(intRowType, 200)),
                    intRowType),
                middle,
                0, pipelineMap(), 1);
        List<ExpressionGenerator> innerExprs = Arrays.asList(boundField(outerRowType, 1, 0), boundField(outerRowType, 1, 1), field(intRowType, 0));
        Operator inner =
            project_DefaultTest(
                valuesScan_Default(
                    bindableExpressions(intRow(intRowType, 1),
                                        intRow(intRowType, 2)),
                    intRowType),
                intRowType, innerExprs);
        RowType innerRowType = inner.rowType();
        Operator plan = map_NestedLoops(outer, inner, 1, pipelineMap(), 1);
        Row[] expected = new Row[]{
            row(innerRowType, 100L, 10L, 1L),
            row(innerRowType, 100L, 10L, 2L),
            row(innerRowType, 100L, 20L, 1L),
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.