Github user kaibozhou commented on the issue:

    https://github.com/apache/flink/pull/4355
  
    In MapViewSerializer.scala, the function "override def serialize(record: 
MapView[K, V], target: DataOutputView):" need to access var map which defined 
in MapView.scala. Becase  mapSerializer.serialize(record.map, target) only 
accept java.util.Map, otherwise, we need to new java.util.Map to call this 
method, this is not very efficient.
    
    The problem is  ”private[flink] var map“ will be seen by Java users, In 
fact, we do not want users to see the implementation of MapView internal.
    
    Maybe use "protected" keyword in Java can solve the problem.
    



---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---

Reply via email to