nizhikov commented on code in PR #12004:
URL: https://github.com/apache/ignite/pull/12004#discussion_r2047236943


##########
modules/core/src/main/java/org/apache/ignite/internal/processors/cache/persistence/filename/NodeFileTree.java:
##########
@@ -879,6 +879,25 @@ private File rootRelative(String path) {
         return Paths.get(root.getAbsolutePath(), path, folderName).toFile();
     }
 
+    /**
+     * @param typeId Type id.
+     * @return Binary metadata file name.
+     */
+    public static String binaryMetaFileName(int typeId) {
+        return typeId + FILE_SUFFIX;
+    }
+
+    /**
+     * @param fileName File name.
+     * @return Type id
+     * @see #binaryMetaFileName(int)
+     * @see NodeFileTree#FILE_SUFFIX
+     */
+    public static int typeId(String fileName) {
+        return Integer.parseInt(fileName.substring(0, fileName.length() - 
FILE_SUFFIX.length()));
+    }
+

Review Comment:
   Please, remove second empty line here.



-- 
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]

Reply via email to