Package com.foundationdb.ais.util.TableChange

Examples of com.foundationdb.ais.util.TableChange.ChangeType


    private static void copyTableIndexes(Table origTable,
                                         Table tableCopy,
                                         List<TableChange> columnChanges,
                                         List<TableChange> indexChanges) {
        for(TableIndex origIndex : origTable.getIndexesIncludingInternal()) {
            ChangeType indexChange = findOldName(indexChanges, origIndex.getIndexName().getName());
            if(indexChange == ChangeType.DROP) {
                continue;
            }
            TableIndex indexCopy = TableIndex.create(tableCopy, origIndex);
            int pos = 0;
View Full Code Here


        // There may be duplicates (e.g. every table has a GI it participates in)
        Collection<Index> newIndexes = new HashSet<>();
        for(ChangeSet cs : changeSets) {
            Table table = ais.getTable(cs.getTableId());
            for(IndexChange ic : cs.getIndexChangeList()) {
                ChangeType changeType = ChangeType.valueOf(ic.getChange().getChangeType());
                if(changeType == ChangeType.ADD || changeType == ChangeType.MODIFY) {
                    String name = ic.getChange().getNewName();
                    final Index index;
                    switch(IndexType.valueOf(ic.getIndexType())) {
                        case TABLE:
View Full Code Here

TOP

Related Classes of com.foundationdb.ais.util.TableChange.ChangeType

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.