diff --git a/service-hudi-query/src/main/java/com/lanyuanxiaoyao/service/hudi/controller/HdfsController.java b/service-hudi-query/src/main/java/com/lanyuanxiaoyao/service/hudi/controller/HdfsController.java index 78fe75c..460ebab 100644 --- a/service-hudi-query/src/main/java/com/lanyuanxiaoyao/service/hudi/controller/HdfsController.java +++ b/service-hudi-query/src/main/java/com/lanyuanxiaoyao/service/hudi/controller/HdfsController.java @@ -85,16 +85,16 @@ public class HdfsController { @GetMapping("count") public Long count(@RequestParam("root") String root) throws IOException { - return hdfsService.size(root); + return hdfsService.count(root); } @GetMapping("file_count") public Long fileCount(@RequestParam("root") String root) throws IOException { - return hdfsService.size(root); + return hdfsService.countFiles(root); } @GetMapping("directory_count") public Long DirectoryCount(@RequestParam("root") String root) throws IOException { - return hdfsService.size(root); + return hdfsService.countDirectories(root); } }