swamirishi commented on code in PR #8788:
URL: https://github.com/apache/ozone/pull/8788#discussion_r2209956274
##########
hadoop-hdds/common/src/main/java/org/apache/hadoop/ozone/util/SeekableIterator.java:
##########
@@ -25,4 +25,6 @@
*/
public interface SeekableIterator<K, E> extends ClosableIterator<E> {
void seek(K position) throws IOException;
+
+ K peekNextKey();
Review Comment:
Yeah the explanation makes sense. We need this peekKey based on which we
would take a call if we need to iterate through the entire list OmKeys for the
containerID. There would be too many OmKeyInfos we would have to iterate to
build the entire object. So based on the peek method we can essential skip
through the entire set.
--
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]