Examples of rowType()


Examples of com.foundationdb.qp.operator.Operator.rowType()

                    ordering.append(ExpressionGenerators.field(prep.resultType(), i), true);
                }
                Operator plan = API.groupScan_Default(cType.table().getGroup());
                plan = API.filter_Default(plan, Arrays.asList(cType, oType, iType));
                plan = API.flatten_HKeyOrdered(plan, cType, oType, JoinType.LEFT_JOIN);
                plan = API.flatten_HKeyOrdered(plan, plan.rowType(), iType, JoinType.LEFT_JOIN);
                plan = API.project_Default(plan, expList, plan.rowType());
                plan = API.sort_General(plan, plan.rowType(), ordering, SortOption.PRESERVE_DUPLICATES);
                return plan;
            }
        });
View Full Code Here

Examples of com.foundationdb.qp.operator.Operator.rowType()

                }
                Operator plan = API.groupScan_Default(cType.table().getGroup());
                plan = API.filter_Default(plan, Arrays.asList(cType, oType, iType));
                plan = API.flatten_HKeyOrdered(plan, cType, oType, JoinType.LEFT_JOIN);
                plan = API.flatten_HKeyOrdered(plan, plan.rowType(), iType, JoinType.LEFT_JOIN);
                plan = API.project_Default(plan, expList, plan.rowType());
                plan = API.sort_General(plan, plan.rowType(), ordering, SortOption.PRESERVE_DUPLICATES);
                return plan;
            }
        });
    }
View Full Code Here

Examples of com.foundationdb.qp.operator.Operator.rowType()

                Operator plan = API.groupScan_Default(cType.table().getGroup());
                plan = API.filter_Default(plan, Arrays.asList(cType, oType, iType));
                plan = API.flatten_HKeyOrdered(plan, cType, oType, JoinType.LEFT_JOIN);
                plan = API.flatten_HKeyOrdered(plan, plan.rowType(), iType, JoinType.LEFT_JOIN);
                plan = API.project_Default(plan, expList, plan.rowType());
                plan = API.sort_General(plan, plan.rowType(), ordering, SortOption.PRESERVE_DUPLICATES);
                return plan;
            }
        });
    }
View Full Code Here

Examples of com.foundationdb.qp.operator.Operator.rowType()

                    TPreparedExpression prep = expList.get(i).getTPreparedExpression();
                    ordering.append(ExpressionGenerators.field(prep.resultType(), i), true);
                }
                Operator plan = API.groupScan_Default(tType.table().getGroup());
                plan = API.project_Default(plan, expList, tType);
                plan = API.sort_General(plan, plan.rowType(), ordering, SortOption.PRESERVE_DUPLICATES);
                return plan;
            }
        });
    }
View Full Code Here

Examples of com.foundationdb.qp.operator.Operator.rowType()

                Arrays.asList(ExpressionGenerators.field(tRowType, 0),
                              ExpressionGenerators.field(tRowType, 1),
                              ExpressionGenerators.field(tRowType, 2),
                              ExpressionGenerators.field(tRowType, 3),
                              ExpressionGenerators.field(tRowType, fillerColumn)));
        RowType inputRowType = setup.rowType();
        int sortComplexity = 0;
        Ordering ordering = ordering();
        for (int f = 0; f < sortFields; f++) {
            boolean ascending = (orderingMask & (1 << f)) != 0;
            ordering.append(ExpressionGenerators.field(inputRowType, f), ascending);
View Full Code Here

Examples of com.foundationdb.qp.operator.Operator.rowType()

        IndexKeyRange dTestIdKeyRange =
            IndexKeyRange.bounded(dIndexRowType, testIdBound, true, testIdBound, true);
        // For the  index scan retrieving rows from the F(a, b) index given a D index row
        IndexBound abBound = new IndexBound(
            new RowBasedUnboundExpressions(
                loadFilter.rowType(),
                Arrays.asList(
                    ExpressionGenerators.boundField(dIndexRowType, 0, 1),
                    ExpressionGenerators.boundField(dIndexRowType, 0, 2)), true),
            new SetColumnSelector(0, 1));
        IndexKeyRange fabKeyRange =
View Full Code Here

Examples of com.foundationdb.qp.operator.Operator.rowType()

                    collators
                    ),
                dIndexRowType,
                Arrays.asList(
                    ExpressionGenerators.field(dIndexRowType, 3)));   // test_id
        outputRowType = plan.rowType();
       
        return plan;
    }

    private int d;
View Full Code Here

Examples of com.foundationdb.qp.operator.Operator.rowType()

                branchLookup_Nested(coi, flattenCO.rowType(), customerRowType, null, list(addressRowType), InputPreservationOption.KEEP_INPUT, 0, lookaheadQuantum()),
                customerRowType,
                addressRowType,
                INNER_JOIN);
        Operator product = product_Nested(flattenCA, flattenCO.rowType(), null, flattenCA.rowType(), 0);
        RowType coaRowType = product.rowType();
        checkRowTypeFields(null, coaRowType,
                MNumeric.INT.instance(false),
                MString.VARCHAR.instance(20, true),
                MNumeric.INT.instance(false),
                MNumeric.INT.instance(true),
View Full Code Here

Examples of com.foundationdb.qp.operator.Operator.rowType()

                branchLookup_Nested(coi, flattenCO.rowType(), customerRowType, null, list(addressRowType), InputPreservationOption.KEEP_INPUT, 0, lookaheadQuantum()),
                customerRowType,
                addressRowType,
                INNER_JOIN);
        Operator product = product_Nested(flattenCA, flattenCO.rowType(), null, flattenCA.rowType(), 0);
        RowType coaRowType = product.rowType();
       
        checkRowTypeFields(null, coaRowType,
                MNumeric.INT.instance(false),
                MString.VARCHAR.instance(20, true),
                MNumeric.INT.instance(false),
View Full Code Here

Examples of com.foundationdb.qp.operator.Operator.rowType()

                flattenCAInner,
                flattenCAOuter.rowType(),
                customerRowType,
                flattenCAInner.rowType(),
                0);
        RowType productRowType = product.rowType();
        Operator plan = map_NestedLoops(flattenCAOuter, product, 0, pipelineMap(), 1);
        Row[] expected = new Row[]{
            row(productRowType, 1L, "northbridge", 1000L, 1L, "111 1000 st", 1000L, 1L, "111 1000 st"),
            row(productRowType, 1L, "northbridge", 1000L, 1L, "111 1000 st", 1001L, 1L, "111 1001 st"),
            row(productRowType, 1L, "northbridge", 1001L, 1L, "111 1001 st", 1000L, 1L, "111 1000 st"),
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.