public static GroupIndex create( AkibanInformationSchema ais, Group group, String indexName, Integer indexId, Boolean isUnique, Boolean isPrimary, TableName constraintName, JoinType joinType) { ais.checkMutability(); if (constraintName != null) { throw new IllegalArgumentException("Group indexes are never constraints"); } AISInvariants.checkDuplicateIndexesInGroup(group, indexName); GroupIndex index = new GroupIndex(group, indexName, indexId, isUnique, isPrimary, joinType); group.addIndex(index); return index; }