tanvipenumudy commented on code in PR #5275:
URL: https://github.com/apache/ozone/pull/5275#discussion_r1361879630
##########
hadoop-ozone/common/src/main/java/org/apache/hadoop/ozone/om/protocol/OzoneManagerProtocol.java:
##########
@@ -894,6 +895,20 @@ default OpenKeySession createFile(OmKeyArgs keyArgs,
boolean overWrite,
List<OzoneFileStatus> listStatus(OmKeyArgs keyArgs, boolean recursive,
String startKey, long numEntries) throws IOException;
+ /**
+ * Lightweight listStatus API.
+ *
+ * @param keyArgs Key args
+ * @param recursive For a directory if true all the descendants of a
+ * particular directory are listed
+ * @param startKey Key from which listing needs to start. If startKey
exists
+ * its status is included in the final list.
+ * @param numEntries Number of entries to list from the start key
+ * @return list of file status
+ */
+ List<OzoneFileStatusLight> listStatusLight(OmKeyArgs keyArgs,
+ boolean recursive, String startKey, long numEntries) throws IOException;
Review Comment:
Thank you @adoroszlai for the review, this is a good point for reducing the
redundancy - I have made the required changes.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]