suneet-s commented on a change in pull request #9247: Add JoinableFactory 
interface and use it in the query stack.
URL: https://github.com/apache/druid/pull/9247#discussion_r370702883
 
 

 ##########
 File path: core/src/main/java/org/apache/druid/utils/JvmUtils.java
 ##########
 @@ -80,13 +82,25 @@ public static long safeGetThreadCpuTime()
    * @return total CPU time for the current thread in nanoseconds.
    *
    * @throws UnsupportedOperationException if the Java virtual machine does 
not support CPU time measurement for
-   * the current thread.
+   *                                       the current thread.
    */
   public static long getCurrentThreadCpuTime()
   {
     return THREAD_MX_BEAN.getCurrentThreadCpuTime();
   }
 
+  public static <T> T safeAccumulateThreadCpuTime(final AtomicLong 
accumulator, final Supplier<T> function)
 
 Review comment:
   javadocs for utility function please :)

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


With regards,
Apache Git Services

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

Reply via email to