symious commented on code in PR #3082:
URL: https://github.com/apache/ozone/pull/3082#discussion_r953816158
##########
hadoop-ozone/recon/src/main/java/org/apache/hadoop/ozone/recon/spi/impl/ReconContainerMetadataManagerImpl.java:
##########
@@ -515,4 +547,84 @@ public void commitBatchOperation(RDBBatchOperation
rdbBatchOperation)
throws IOException {
this.containerDbStore.commitBatchOperation(rdbBatchOperation);
}
+
+ /**
+ * Use the DB's prefix seek iterator to start the scan from the given
+ * key prefix and key version.
+ *
+ * @param keyPrefix the given keyPrefix.
+ * @param keyVersion the given keyVersion.
+ * @return Map of (KeyPrefixContainer, Integer).
+ */
+ @Override
+ public Map<KeyPrefixContainer, Integer> getContainerForKeyPrefixes(
+ String keyPrefix, long keyVersion) throws IOException {
+
+ Map<KeyPrefixContainer, Integer> containers = new LinkedHashMap<>();
+ TableIterator<KeyPrefixContainer, ? extends KeyValue<KeyPrefixContainer,
+ Integer>> keyIterator = keyContainerTable.iterator();
Review Comment:
Updated with try-with-resource.
--
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]