Package com.foundationdb.server.types.service

Examples of com.foundationdb.server.types.service.TypesRegistry


        AlterTableDDL.alterTable(ddl(), dml(), session(), schema, (AlterTableNode) node, queryContext);
    }

    protected final int createTableFromTypes(String schema, String table, boolean firstIsPk, boolean createIndexes,
                                             SimpleColumn... columns) {
        TypesRegistry typesRegistry = typesRegistry();
        AISBuilder builder = new AISBuilder();
        builder.table(schema, table);

        int colPos = 0;
        SimpleColumn pk = firstIsPk ? columns[0] : new SimpleColumn("id", "MCOMPAT_ int");
View Full Code Here


        bytes.flip();
    }

    @Test
    public void loadNormally() {
        TypesRegistry typesRegistry = TestTypesRegistry.MCOMPAT;
        Sequence sequence = loadSequence(typesRegistry, testFormatRegistry);
        assertNotNull(sequence);
        assertTrue(isFullDescription(sequence.getStorageDescription()));
    }
View Full Code Here

        assertTrue(isFullDescription(sequence.getStorageDescription()));
    }

    @Test
    public void loadPartially() {
        TypesRegistry typesRegistry = TestTypesRegistry.MCOMPAT;
        StorageFormatRegistry newFormatRegistry = DummyStorageFormatRegistry.create();
        Sequence sequence = loadSequence(typesRegistry, newFormatRegistry);
        assertNotNull(sequence);
        assertFalse(isFullDescription(sequence.getStorageDescription()));
        assertTrue(isPartialDescription(sequence.getStorageDescription()));
View Full Code Here

        assertTrue(isPartialDescription(sequence.getStorageDescription()));
    }

    @Test
    public void reloadNormally() {
        TypesRegistry typesRegistry = TestTypesRegistry.MCOMPAT;
        StorageFormatRegistry newFormatRegistry = DummyStorageFormatRegistry.create();
        AkibanInformationSchema ais = new AkibanInformationSchema();
        ProtobufReader reader = new ProtobufReader(typesRegistry, newFormatRegistry, ais);
        reader.loadBuffer(bytes);
        reader.loadAIS();
View Full Code Here

    protected SQLParser parser;

    private AkibanInformationSchema factory () throws Exception
    {
        TypesRegistry typesRegistry = TestTypesRegistry.MCOMPAT;
        TestAISBuilder builder = new TestAISBuilder(typesRegistry);
        builder.table("s", "t");
        builder.column ("s", "t", "c1", 0, "MCOMPAT", "int", false);
        builder.pk("s", "t");
        builder.indexColumn("s", "t", "PRIMARY", "c1", 0, true, 0);
View Full Code Here

TOP

Related Classes of com.foundationdb.server.types.service.TypesRegistry

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.