fix(hudi-query): 修复接口调用错误

This commit is contained in:
v-zhangjc9
2024-10-12 15:52:05 +08:00
parent 57a828c5b4
commit 8fda8f7669

View File

@@ -85,16 +85,16 @@ public class HdfsController {
@GetMapping("count") @GetMapping("count")
public Long count(@RequestParam("root") String root) throws IOException { public Long count(@RequestParam("root") String root) throws IOException {
return hdfsService.size(root); return hdfsService.count(root);
} }
@GetMapping("file_count") @GetMapping("file_count")
public Long fileCount(@RequestParam("root") String root) throws IOException { public Long fileCount(@RequestParam("root") String root) throws IOException {
return hdfsService.size(root); return hdfsService.countFiles(root);
} }
@GetMapping("directory_count") @GetMapping("directory_count")
public Long DirectoryCount(@RequestParam("root") String root) throws IOException { public Long DirectoryCount(@RequestParam("root") String root) throws IOException {
return hdfsService.size(root); return hdfsService.countDirectories(root);
} }
} }