lowka commented on code in PR #3146:
URL: https://github.com/apache/ignite-3/pull/3146#discussion_r1479279037
##########
modules/api/src/main/java/org/apache/ignite/table/mapper/PojoMapperImpl.java:
##########
@@ -18,15 +18,21 @@
package org.apache.ignite.table.mapper;
import java.util.Collection;
+import java.util.Collections;
import java.util.Map;
import java.util.Objects;
+import java.util.concurrent.ConcurrentHashMap;
/**
* Maps object fields to columns by name.
*
* @param <T> Target type.
*/
class PojoMapperImpl<T> implements PojoMapper<T> {
+
+ /** Cache of pojo mappers. */
+ private static final ConcurrentHashMap<CacheKey, PojoMapper<?>> CACHE =
new ConcurrentHashMap<>();
Review Comment:
I think there should be no such cache, perhaps.
--
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]