Package com.foundationdb.qp.rowtype

Examples of com.foundationdb.qp.rowtype.TableRowType.table()


            tableRowType = ((Schema) inputRowType.schema()).tableRowType(((HKeyRowType) inputRowType).hKey().table());
        } else {
            ArgumentValidation.isTrue("invalid rowType", false);
            tableRowType = null;
        }
        Table inputTable = tableRowType.table();
        this.ancestors = new ArrayList<>(outputRowTypes.size());
        List<TableRowType> branchOutputRowTypes = null;
        Table branchRoot = null;
        boolean outputInputTable = false;
        for (TableRowType outputRowType : outputRowTypes) {
View Full Code Here


    protected static OperatorCreator indexScanCreator(final int tID, final String indexName) {
        return new OperatorCreator() {
            @Override
            public Operator create(Schema schema) {
                TableRowType tableRowType = schema.tableRowType(tID);
                Index index = tableRowType.table().getIndex(indexName);
                return API.indexScan_Default(tableRowType.indexRowType(index));
            }
        };
    }
View Full Code Here

    private static final Logger logger = LoggerFactory.getLogger(RowIndexer.class);

    public RowIndexer(FullTextIndexInfo index, IndexWriter writer, boolean updating) {
        TableRowType indexedRowType = index.getIndexedRowType();
        int depth = indexedRowType.table().getDepth();
        ancestorRowTypes = new HashMap<>(depth+1);
        ancestors = new Row[depth+1];
        fieldsByRowType = index.getFieldsByRowType();
        Set<RowType> rowTypes = index.getRowTypes();
        descendantRowTypes = new HashSet<>(rowTypes.size() - ancestorRowTypes.size());
View Full Code Here

                        testRow(cType, "b", 0, pk++),
                        testRow(cType, "c", 0, pk++),
                        testRow(cType, "d", 0, pk++),
                        testRow(cType, "e", 3, pk++),
                },
                adapter.newGroupCursor(cType.table().getGroup())
        );
    }

    @Test
    public void dropPKColumn() {
View Full Code Here

                        testRow(cType, "b", pk++),
                        testRow(cType, "c", pk++),
                        testRow(cType, "d", pk++),
                        testRow(cType, "e", pk++),
                },
                adapter.newGroupCursor(cType.table().getGroup())
        );
    }

    @Test
    public void addPKColumnToPKLessTable() {
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.