Etienne Chauchot created BEAM-3892:
--------------------------------------

             Summary: Make MetricQueryResults and related classes more 
json-serialization friendly
                 Key: BEAM-3892
                 URL: https://issues.apache.org/jira/browse/BEAM-3892
             Project: Beam
          Issue Type: Improvement
          Components: sdk-java-core
            Reporter: Etienne Chauchot
            Assignee: Etienne Chauchot


When working on this PR [https://github.com/apache/beam/pull/4548] 
MetricQueryResults needed to be serialized to be pushed to a metrics sink. As 
they were it required a custom serializer that just calls the name(), 
counter(), committed(), attempted() ... methods. MetricQueryResults are so 
close to be serializable with the default serializer, just need the accessors 
to be renamed get*, that creating DTO objects with get* methods to just call 
the non-get methods seems unnecessary. 
So just rename public accessors to get* on the experimental API



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to