Package com.foundationdb.qp.rowtype

Examples of com.foundationdb.qp.rowtype.IndexRowType


        runAlter(ChangeLevel.TABLE, "ALTER TABLE test2.o ALTER COLUMN o1 SET DATA TYPE bigint");

        Index gi = getTable(schema2, "c").getGroup().getIndex("c1_01");
        assertNotNull("GI still exists", gi);

        IndexRowType type = indexRowType(gi);
        scanAndCheckIndex(type,
                testRow(type, "a", 11L, 1L, 10L),
                testRow(type, "a", 12L, 1L, 11L)
        );
    }
View Full Code Here


        alterRunnable.run();

        Index gi = getTable(SCHEMA, table).getGroup().getIndex(giName);
        assertNotNull("GI still exists", gi);

        IndexRowType type = indexRowType(gi);
        scanAndCheckIndex(type,
                          testRow(type, "a", 11L, 110L, 1L, 10L, 100L),
                          testRow(type, "a", 11L, 111L, 1L, 10L, 101L),
                          testRow(type, "a", 12L, 122L, 1L, 11L, 111L)
        );
View Full Code Here

            );
    }
   
    protected void compareRows(Object[][] expected, Index index) {
        Schema schema = SchemaCache.globalSchema(ais());
        IndexRowType rowType = schema.indexRowType(index);
        Row[] rows = new Row[expected.length];
        for(int i = 0; i < expected.length; ++i) {
            rows[i] = new TestRow(rowType, expected[i]);
        }
        StoreAdapter adapter = newStoreAdapter(schema);
View Full Code Here

            plan.referencedFields = new FieldDef[plan.ncols];
            for (int i = 0; i < plan.ncols; i++) {
                plan.referencedFields[i] = referencedColumns.get(i).getFieldDef();
            }
            Index index = foreignKey.getReferencingIndex();
            IndexRowType indexRowType = plan.schema.indexRowType(index);
            List<TPreparedExpression> vars = new ArrayList<>(plan.ncols);
            for (int i = 0; i < plan.ncols; i++) {
                // Convert from index column position to parameter number.
                Column indexedColumn = crossReferencedColumns.get(i);
                int fkpos = referencedColumns.indexOf(indexedColumn);
View Full Code Here

TOP

Related Classes of com.foundationdb.qp.rowtype.IndexRowType

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.