fix(hudi-query): 修复接口调用错误
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user