indexParas = new IndexParameters[indexTypes.length];
for (int i=0;i<indexTypes.length;i++)
indexParas[i]=new IndexParameters(indexTypes[i].getIndexName(),new Parameter[0]);
}
Preconditions.checkArgument(indexTypes.length==indexParas.length,"Lengths don't agree: %s vs %s",indexTypes.length,indexParas.length);
IndexDefinition tmp[] = new IndexDefinition[indexTypes.length];
for (int i=0;i<indexTypes.length;i++) {
tmp[i]=IndexDefinition.of(indexTypes[i],indexParas[i]);
}
indexes = tmp;
}