|
@@ -36,7 +36,7 @@ public class IndexController {
|
|
|
|
|
|
|
|
@RequestMapping("/create")
|
|
@RequestMapping("/create")
|
|
|
@ResponseBody
|
|
@ResponseBody
|
|
|
- public String createIndexs(String tableNames, Boolean fromFiles) {
|
|
|
|
|
|
|
+ public String createIndexs(String tableNames, Boolean fromFiles, Boolean ifStartListener) {
|
|
|
List<Table_name> tableNameList = null;
|
|
List<Table_name> tableNameList = null;
|
|
|
if (!StringUtils.isEmpty(tableNames)) {
|
|
if (!StringUtils.isEmpty(tableNames)) {
|
|
|
String[] strs = tableNames.split(",");
|
|
String[] strs = tableNames.split(",");
|
|
@@ -46,7 +46,7 @@ public class IndexController {
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
return String.format("Indexes created success in %.2fs",
|
|
return String.format("Indexes created success in %.2fs",
|
|
|
- indexService.createIndexes(tableNameList, fromFiles) / 1000.0);
|
|
|
|
|
|
|
+ indexService.createIndexes(tableNameList, fromFiles, ifStartListener) / 1000.0);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
@RequestMapping("/downloadData")
|
|
@RequestMapping("/downloadData")
|