prasad-acit commented on a change in pull request #3197:
URL: https://github.com/apache/hadoop/pull/3197#discussion_r669908410
##########
File path:
hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/util/PartitionedGSet.java
##########
@@ -297,11 +306,9 @@ public boolean hasNext() {
}
@Override
- public E next() {
- while(!partitionIterator.hasNext()) {
- K curKey = keyIterator.next();
- partitionIterator = getPartition(curKey).iterator();
- }
+ public E next() throws NoSuchElementException {
Review comment:
This is runtime exception, not required to specify in the method
signature.
--
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]