kennknowles commented on code in PR #41741:
URL: https://github.com/apache/beam/pull/41741#discussion_r4744720246


##########
sdks/java/harness/src/main/java/org/apache/beam/fn/harness/PrecombineGroupingTable.java:
##########
@@ -126,11 +129,25 @@ public interface SizeEstimator {
   private final PipelineOptions options;
   private final SizeEstimator sizer;
   private final Cache<Key, PrecombineGroupingTable<K, InputT, AccumT>> cache;
-  private final LinkedHashMap<GroupingTableKey, GroupingTableEntry> lruMap;
+  private final LinkedHashMap<Object, GroupingTableEntry<K, InputT, AccumT>> 
lruMap;

Review Comment:
   Can we do this without creating a dynamically typing situation? Like, two 
distinct code paths for the fast path? The table will never have both types, 
right?
   
   Ideally we keep typing as constrained as possible to guide future 
development. Maybe in the future it won't matter but for now I think it still 
helps agents.



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