korlov42 commented on code in PR #2982:
URL: https://github.com/apache/ignite-3/pull/2982#discussion_r1446087818


##########
modules/sql-engine/src/main/java/org/apache/ignite/internal/sql/engine/util/cache/Cache.java:
##########
@@ -60,4 +62,21 @@ public interface Cache<K, V> {
 
     /** Clears the given cache. That is, remove all keys and associated 
values. */
     void clear();
+
+    /**
+     * Attempts to compute a mapping for the specified key and its current
+     * mapped value (or {@code null} if there is no current mapping).
+     *
+     * @param key key with which the specified value is to be associated
+     * @param remappingFunction the remapping function to compute a value
+     * @return the new value associated with the specified key, or null if none
+     */
+    V compute(K key, BiFunction<? super K, ? super V, ? extends V> 
remappingFunction);
+
+    /**
+     * Removes all cache entries whose values match the specified predicate.
+     *
+     * @param valueFilter a predicate which returns {@code true} for the 
values of entries to be removed.

Review Comment:
   ```suggestion
        * @param valueFilter A predicate which returns {@code true} for the 
values of entries to be removed.
   ```



##########
modules/sql-engine/src/main/java/org/apache/ignite/internal/sql/engine/util/cache/Cache.java:
##########
@@ -60,4 +62,21 @@ public interface Cache<K, V> {
 
     /** Clears the given cache. That is, remove all keys and associated 
values. */
     void clear();
+
+    /**
+     * Attempts to compute a mapping for the specified key and its current
+     * mapped value (or {@code null} if there is no current mapping).
+     *
+     * @param key key with which the specified value is to be associated
+     * @param remappingFunction the remapping function to compute a value
+     * @return the new value associated with the specified key, or null if none

Review Comment:
   ```suggestion
        * @param key Key with which the specified value is to be associated.
        * @param remappingFunction The remapping function to compute a value.
        * @return The new value associated with the specified key, or null if 
none.
   ```



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