swamirishi commented on code in PR #7440:
URL: https://github.com/apache/ozone/pull/7440#discussion_r1846154926
##########
hadoop-ozone/client/src/main/java/org/apache/hadoop/ozone/client/OzoneBucket.java:
##########
@@ -985,8 +985,23 @@ public OzoneDataStreamOutput createStreamFile(String
keyName, long size,
*/
public List<OzoneFileStatus> listStatus(String keyName, boolean recursive,
String startKey, long numEntries) throws IOException {
- return proxy
- .listStatus(volumeName, name, keyName, recursive, startKey,
numEntries);
+ return proxy.listStatus(volumeName, name, keyName, recursive, startKey,
numEntries);
+ }
+
+ /**
+ * List the lightweight status for a file or a directory and its contents.
+ *
+ * @param keyName Absolute path of the entry to be listed
+ * @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
+ */
+ public List<OzoneFileStatusLight> listStatusLight(String keyName, boolean
recursive,
Review Comment:
This method returns a list of OzoneFileStatusLight while listSTatus method
returns a List<OzoneFileStatus>
--
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]