code: private void createIndexOnTable(TableInfo tableInfo)
      {
  
          List<IndexInfo> indexColumns = tableInfo.getColumnsToBeIndexed();
          for (IndexInfo indexInfo : indexColumns)
          {
              if (indexInfo.getIndexType() != null && indexInfo.getIndexType().toLowerCase().equals(Constants.COMPOSITE))
              {
                  String[] columnNames = indexInfo.getColumnName().split(Constants.COMMA);
                  createIndex(tableInfo.getTableName(), indexInfo.getIndexName(), columnNames);
              }
              else
              {
                  createIndex(tableInfo.getTableName(), indexInfo.getIndexName(), indexInfo.getColumnName());
              }
          }
      }
docs: Creates the index on table.
  
  @param tableInfo
  the table info