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

This commit is contained in:
v-zhangjc9
2024-10-12 15:52:05 +08:00
parent 28b3fd9ca1
commit e30a720cea

View File

@@ -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);
}
}