Package com.foundationdb.ais.util

Examples of com.foundationdb.ais.util.TableChangeValidatorState


        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


                                            Table origTable,
                                            Table newTable,
                                            TableChangeValidator validator)
    {
        AkibanInformationSchema origAIS = origTable.getAIS();
        TableChangeValidatorState changeState = validator.getState();
        ChangeLevel changeLevel = validator.getFinalChangeLevel();

        List<Sequence> sequencesToDrop = new ArrayList<>();
        for(ChangedTableDescription desc : changeState.descriptions) {
            for(TableName name : desc.getDroppedSequences()) {
View Full Code Here

TOP

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

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.