void addIndexes(IndexType type, String[] indexes) { for (String index : indexes) { List<String> validatedColumns = getColumns(index); if (validatedColumns == null) { return; } addIndex(type, validatedColumns); } }
/** * Defines an index with the specified model fields. * * @param type the index type (STANDARD, HASH, UNIQUE, UNIQUE_HASH) * @param modelFields the ordered list of model fields */ void addIndex(IndexType type, Object[] modelFields) { List<String> columnNames = mapColumnNames(modelFields); addIndex(type, columnNames); }