Currently rename folder is to get all the keys, and then rename them one by one. This makes for poor performance.
HDDS-2939 can able to optimize this part, but at present the HDDS-2939 is slow and still a long way to go. So we optimized the batch operation based on the current interface. We were able to get better performance with this PR before the HDDS-2939 came in.
This patch is a subtask of Batch Rename and first makes OzoneRpcClient Support Batch Rename Keys.