DaveTeng0 commented on code in PR #6533:
URL: https://github.com/apache/ozone/pull/6533#discussion_r1575145223


##########
hadoop-ozone/tools/src/main/java/org/apache/hadoop/ozone/debug/RocksDBUtils.java:
##########
@@ -45,4 +52,28 @@ public static List<ColumnFamilyDescriptor> 
getColumnFamilyDescriptors(
     }
     return cfs;
   }
+
+  public static ColumnFamilyHandle getColumnFamilyHandle(String 
columnFamilyName, List<ColumnFamilyHandle> cfHandleList)
+      throws RocksDBException {
+    byte[] nameBytes = columnFamilyName.getBytes(StandardCharsets.UTF_8);
+
+    for (ColumnFamilyHandle cf : cfHandleList) {
+      if (Arrays.equals(cf.getName(), nameBytes)) {
+        return cf;
+      }
+    }
+
+    return null;
+  }
+
+  public static <T> T getColumnFamilyValue(ManagedRocksDB db,

Review Comment:
   yeah 'getValue' makes sense! and line 70 alignment fixed!



-- 
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: issues-unsubscr...@ozone.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@ozone.apache.org
For additional commands, e-mail: issues-h...@ozone.apache.org

Reply via email to