SourabhBadhya commented on code in PR #4098:
URL: https://github.com/apache/hive/pull/4098#discussion_r1128028232


##########
ql/src/java/org/apache/hadoop/hive/ql/txn/compactor/CompactorUtil.java:
##########
@@ -74,6 +77,40 @@ static Runnable unchecked(ThrowingRunnable<?> r) {
     }
   }
 
+  /**
+   * An interface to create {@link Function} which can throw exceptions.
+   * This is especially useful when we pass lambda-expressions which embed 
functions which throw exceptions
+   * @param <T> the type of the input to the function
+   * @param <R> the type of the result of the function
+   * @param <E> the exception that is being thrown by the function
+   */
+  public interface ThrowingFunction<T, R, E extends Exception> {

Review Comment:
   Removed `ThrowingFunction`. Done.



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