}
tn.createPrimaryKey(getIndex(0).getName(), pkCols, false);
for (int i = 1; i < indexList.length; i++) {
Index idx = indexList[i];
if (dropIndexes.contains(idx.getName())) {
continue;
}
int[] colarr = ArrayUtil.toAdjustedColumnArray(idx.getColumns(),
colIndex, adjust);
// A VoltDB extension to support indexed expressions and assume unique attribute
Expression[] exprArr = idx.getExpressions();
boolean assumeUnique = idx.isAssumeUnique();
// End of VoltDB extension
idx = tn.createIndexStructure(idx.getName(), colarr,
idx.getColumnDesc(), null,
idx.isUnique(), idx.isConstraint(),
idx.isForward());
// A VoltDB extension to support indexed expressions and assume unique attribute
if (exprArr != null) {
idx = idx.withExpressions(adjustExprs(exprArr, colIndex, adjust));
}
idx = idx.setAssumeUnique(assumeUnique);
// End of VoltDB extension
tn.addIndex(idx);
}
if (index != null) {