Package com.foundationdb.server.error

Examples of com.foundationdb.server.error.IndexLacksColumnsException


    public void validate(AkibanInformationSchema ais, AISValidationOutput output) {
        for (Table table : ais.getTables().values()) {
            for (TableIndex index : table.getIndexesIncludingInternal()) {
                if (index.getKeyColumns().size() == 0) {
                    output.reportFailure(new AISValidationFailure (
                            new IndexLacksColumnsException(table.getName(), index.getIndexName().getName())));
                }
            }
        }
    }
View Full Code Here


        if(curIndex != null) {
            throw new DuplicateIndexException(indexName);
        }
        if(index.getKeyColumns().isEmpty()) {
            throw new IndexLacksColumnsException(indexName);
        }

        for(IndexColumn indexCol : index.getKeyColumns()) {
            final TableName refTableName = indexCol.getColumn().getTable().getName();
            final Table newRefTable = targetAIS.getTable(refTableName);
View Full Code Here

TOP

Related Classes of com.foundationdb.server.error.IndexLacksColumnsException

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.