Examples of RowType


Examples of com.foundationdb.qp.rowtype.RowType

                filter_Default(
                    groupScan_Default(coi),
                    Collections.singleton(orderRowType)),
                orderRowType,
                Arrays.asList(field(orderRowType, 1)));
        RowType projectType = project.rowType();
        Operator plan =
            sort_InsertionLimited(
                project,
                projectType,
                ordering(field(projectType, 0), true),
View Full Code Here

Examples of com.foundationdb.qp.rowtype.RowType

                filter_Default(
                    groupScan_Default(coi),
                    Collections.singleton(orderRowType)),
                orderRowType,
                Arrays.asList(field(orderRowType, 2)));
        RowType projectType = project.rowType();
        Operator plan =
            sort_InsertionLimited(
                project,
                projectType,
                ordering(field(projectType, 0), true),
View Full Code Here

Examples of com.foundationdb.qp.rowtype.RowType

    }

    @Test
    public void testFreeze()
    {
        RowType innerValuesRowType = schema.newValuesType(MNumeric.INT.instance(true));
        List<BindableRow> innerValuesRows = new ArrayList<>();
        innerValuesRows.add(BindableRow.of(innerValuesRowType, Collections.singletonList(literal(null))));
        Operator project = project_DefaultTest(valuesScan_Default(innerValuesRows, innerValuesRowType),
                                           innerValuesRowType,
                                           Arrays.asList(boundField(customerRowType, 0, 1)));
        RowType projectType = project.rowType();
        Operator plan =
            sort_InsertionLimited(
                map_NestedLoops(
                    filter_Default(groupScan_Default(coi),
                                   Collections.singleton(customerRowType)),
View Full Code Here

Examples of com.foundationdb.qp.rowtype.RowType

     */
    static Operator groupIndexCreationPlan(Schema schema, GroupIndex groupIndex) {
        StoreGIMaintenance.BranchTables branchTables = branchTablesRootToLeaf(schema, groupIndex);
        Operator plan = API.groupScan_Default(groupIndex.getGroup());
        plan = API.filter_Default(plan, branchTables.fromRoot());
        RowType parentRowType = null;
        API.JoinType joinType = API.JoinType.RIGHT_JOIN;
        EnumSet<API.FlattenOption> flattenOptions = EnumSet.noneOf(API.FlattenOption.class);
        final API.JoinType withinGIJoin;
        switch(groupIndex.getJoinType()) {
            case LEFT:  withinGIJoin = API.JoinType.LEFT_JOIN;  break;
View Full Code Here

Examples of com.foundationdb.qp.rowtype.RowType

    public void indexRow(Row row) throws IOException {
        if (row == null) {
            addDocument();
            return;
        }
        RowType rowType = row.rowType();
        Integer ancestorDepth = ancestorRowTypes.get(rowType);
        if (ancestorDepth != null) {
            ancestors[ancestorDepth] = row;
            if (ancestorDepth == ancestors.length - 1) {
                addDocument();
View Full Code Here

Examples of org.hsqldb.types.RowType

        this.returnsTable = true;

        SimpleName[] names = new SimpleName[table.getColumnCount()];
        Type[]       types = table.getColumnTypes();

        returnType = new RowType(types);
    }
View Full Code Here

Examples of org.hsqldb.types.RowType

                nodes[i].resolveTypes(session, this);
            }
        }

        if (nodes[LEFT].getDegree() > 1) {
            nodes[LEFT].dataType = new RowType(nodes[LEFT].nodeDataTypes);
        }

        if (nodes[LEFT].isUnresolvedParam()) {
            throw Error.error(ErrorCode.X_42567);
        }
View Full Code Here

Examples of org.hsqldb.types.RowType

            if (!exprType.isNumberType()) {
                throw Error.error(ErrorCode.X_42534);
            }
        }

        Type rowDataType = new RowType(nodeDataTypes);

        switch (opType) {

            case OpTypes.ARRAY_AGG :
                arrayDataType =
View Full Code Here

Examples of org.hsqldb.types.RowType

        this.returnsTable = true;

        SimpleName[] names = new SimpleName[table.getColumnCount()];
        Type[]       types = table.getColumnTypes();

        returnType = new RowType(types);
    }
View Full Code Here

Examples of org.hsqldb.types.RowType

        if (exprType.isArrayType()) {
            throw Error.error(ErrorCode.X_42534);
        }

        Type rowDataType = new RowType(nodeDataTypes);

        switch (opType) {

            case OpTypes.ARRAY_AGG :
                arrayDataType =
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.