Package com.foundationdb.ais.model

Examples of com.foundationdb.ais.model.Group


    public void createWithTest() {
        if (!wasPersistit) return;

        createFromDDL("test",
                      "CREATE TABLE t1(id INT PRIMARY KEY NOT NULL) STORAGE_FORMAT test(name = 'Fred', option = true)");
        Group group = ais().getGroup(new TableName("test", "t1"));
        StorageDescription storage = group.getStorageDescription();
        assertTrue(storage instanceof TestPersistitStorageDescription);
        TestPersistitStorageDescription testStorage = (TestPersistitStorageDescription)storage;
        assertEquals("Fred", testStorage.getName());
        assertEquals("true", testStorage.getOption());
    }
View Full Code Here


            throw new UnsupportedOperationException();
        }

        @Override
        public TableName registerMemoryInformationSchemaTable(Table newTable, MemoryTableFactory factory) {
            Group group = newTable.getGroup();
            storageFormatRegistry.registerMemoryFactory(group.getName(), factory);
            // No copying or name registry; just apply right now.
            group.setStorageDescription(null);
            storageFormatRegistry.finishStorageDescription(group, null);
            return group.getName();
        }
View Full Code Here

        MemoryAdapter adapter = new MemoryAdapter(schema, session(), null);

        Row[] rows = objectToRows(expected, rowType);

       
        Group group = serverTable.getGroup();
        RowCursor cursor = adapter.newGroupCursor(group);
        compareRows(rows, cursor, false);
    }
View Full Code Here

            return null;
        Table parentTable = rowType.table().getParentTable();
        if (parentTable == null) {
            return null;
        }
        final Group group = groupIndex.getGroup();
        final TableRowType parentRowType = branchTables.parentRowType(rowType);
        assert parentRowType != null;

        Operator plan = API.groupScan_Default(
                groupIndex.getGroup(),
View Full Code Here

TOP

Related Classes of com.foundationdb.ais.model.Group

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.