sodonnel commented on a change in pull request #1950:
URL: https://github.com/apache/ozone/pull/1950#discussion_r581873202



##########
File path: 
hadoop-hdds/common/src/main/java/org/apache/hadoop/ozone/common/ChecksumByteBufferImpl.java
##########
@@ -54,6 +79,23 @@
     }
   };
 
+  public static ChecksumByteBuffer crc32Impl() {
+    return new ChecksumByteBufferImpl(new CRC32());
+  }
+
+  public static ChecksumByteBuffer crc32Cimpl() {
+    if (useJava9Crc32C) {
+      try {
+        return new ChecksumByteBufferImpl(Java9Crc32CFactory.createChecksum());

Review comment:
       I'm not sure what you mean - the crc32Cimpl is like a static factory I 
think, and the code which needs to get a checksum impl calls either 
`checksumByteBufferImpl.crc32impl or `checksumByteBufferImpl..crc32cimpl`.
   
   Can you post a code snippet of what you are thinking?




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

For queries about this service, please contact Infrastructure at:
[email protected]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to