gianm commented on code in PR #17460:
URL: https://github.com/apache/druid/pull/17460#discussion_r1841383680


##########
processing/src/main/java/org/apache/druid/common/utils/SerializerUtils.java:
##########
@@ -224,4 +239,83 @@ public int getSerializedStringByteSize(String str)
   {
     return Integer.BYTES + StringUtils.toUtf8(str).length;
   }
+
+
+  /**
+   * Write a {@link Serializer} to a {@link Path} and then map it as a 
read-only {@link MappedByteBuffer}
+   */
+  @SuppressFBWarnings("NP_NONNULL_PARAM_VIOLATION")

Review Comment:
   IMO, a good approach is to adjust this to pass an actual `FileSmoosher`, and 
to return `SmooshFileMapper` rather than `MappedByteBuffer`.



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

Reply via email to