Examples of userTableTypes()


Examples of com.foundationdb.qp.rowtype.Schema.userTableTypes()

    protected static List<TableRowType> branchOutputRowTypes(TableRowType outputRowType) {
        List<TableRowType> outputRowTypes = new ArrayList<>();
        outputRowTypes.add(outputRowType);
        Schema schema = (Schema)outputRowType.schema();
        for (RowType rowType : Schema.descendentTypes(outputRowType, schema.userTableTypes())) {
            outputRowTypes.add((TableRowType)rowType);
        }
        return outputRowTypes;
    }
View Full Code Here

Examples of com.foundationdb.qp.rowtype.Schema.userTableTypes()

    public static Operator generateBranchPlan (Table table, Operator scan, RowType scanType) {
        final Schema schema = (Schema)scanType.schema();
        final TableRowType tableType = schema.tableRowType(table);
        final List<TableRowType> tableTypes = new ArrayList<>();
        tableTypes.add(tableType);
        for (RowType rowType : Schema.descendentTypes(tableType, schema.userTableTypes())) {
            tableTypes.add((TableRowType)rowType);
        }
        Operator plan = API.groupLookup_Default(scan, table.getGroup(),
                                                scanType, tableTypes,
                                                API.InputPreservationOption.DISCARD_INPUT, 1);
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.