Package com.foundationdb.ais.util

Examples of com.foundationdb.ais.util.TableChangeValidator


            @Override
            public AISValidatorPair call() {
                AkibanInformationSchema origAIS = getAIS(session);
                Table origTable = origAIS.getTable(tableName);
                schemaManager().startOnline(session);
                TableChangeValidator validator = alterTableDefinitions(
                    session, origTable, newDefinition, columnChanges, tableIndexChanges
                );
                List<ChangeSet> changeSets = buildChangeSets(
                    origAIS,
                    schemaManager().getOnlineAIS(session),
View Full Code Here


    {
        // Any GroupIndex changes are entirely derived, ignore any that happen to be passed.
        if(newDefinition.getGroup() != null) {
            newDefinition.getGroup().removeIndexes(newDefinition.getGroup().getIndexes());
        }
        TableChangeValidator v = new TableChangeValidator(origTable, newDefinition, columnChanges, tableIndexChanges);
        v.compare();
        TableChangeValidatorState changeState = v.getState();
        dropGroupIndexDefinitions(session, origTable, changeState.droppedGI);
        Table newTable = schemaManager().getOnlineAIS(session).getTable(origTable.getTableId());
        dropGroupIndexDefinitions(session, newTable, changeState.affectedGI.keySet());
        schemaManager().alterTableDefinitions(session, changeState.descriptions);
        newTable = schemaManager().getOnlineAIS(session).getTable(origTable.getTableId());
View Full Code Here

TOP

Related Classes of com.foundationdb.ais.util.TableChangeValidator

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.