adoroszlai commented on code in PR #8621:
URL: https://github.com/apache/ozone/pull/8621#discussion_r2146936406
##########
hadoop-hdds/framework/src/main/java/org/apache/hadoop/hdds/utils/db/Table.java:
##########
@@ -153,21 +153,17 @@ default VALUE getReadCopy(KEY key) throws IOException {
*/
void deleteRange(KEY beginKey, KEY endKey) throws IOException;
- /**
- * Returns the iterator for this metadata store.
- *
- * @return MetaStoreIterator
- * @throws IOException on failure.
- */
- TableIterator<KEY, ? extends KeyValue<KEY, VALUE>> iterator()
- throws IOException;
+ /** The same as iterator(null, true). */
+ default KeyValueIterator<KEY, VALUE> iterator() throws IOException {
+ return iterator(null);
+ }
- /**
- * Returns a prefixed iterator for this metadata store.
- * @param prefix
- * @return MetaStoreIterator
- */
- TableIterator<KEY, ? extends KeyValue<KEY, VALUE>> iterator(KEY prefix)
+ /** The same as iterator(prefix, true). */
+ default KeyValueIterator<KEY, VALUE> iterator(KEY prefix) throws IOException
{
+ return iterator(prefix, KeyValueIterator.Type.KEY_AND_VALUE);
Review Comment:
javadoc on both convenience methods seems to be leftover after refactoring
from `boolean` to `KeyValueIterator.Type`.
--
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]