wernerdv commented on code in PR #12336:
URL: https://github.com/apache/ignite/pull/12336#discussion_r2568965205


##########
modules/core/src/main/java/org/apache/ignite/internal/processors/datastreamer/DataStreamerEntry.java:
##########
@@ -95,8 +107,28 @@ public <K, V> Map.Entry<K, V> toEntry(final 
GridCacheContext ctx, final boolean
         };
     }
 
+    /**
+     * @return Map entry unwrapping internal key and value.
+     */
+    public <K, V> Map.Entry<K, V> toEntry() {
+        return new Map.Entry<K, V>() {
+            @Override public K getKey() {
+                return (K)entryKey();
+            }
+
+            @Override public V setValue(V val) {
+                throw new UnsupportedOperationException();

Review Comment:
   Maybe we should go back to the old logic?
   
   ```
               @Override public V setValue(V val) {
                   CacheObject old = value();
   
                   value((CacheObject)val);
   
                   return (V)old;
               }
   ```



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