Github user sachingoel0101 commented on the pull request:
https://github.com/apache/flink/pull/1032#issuecomment-162550968
Hi @chiwanpark, thanks for picking this up. :)
Since a `Vector` might contain discrete fields as well as continuous
fields, we need to have a `FieldStats` object which can cover both types. To
prevent the need of casting from `FieldStats` to `ContinuousFieldStats` and
`DiscreteFieldStats` in case there is an abstract class `FieldStats`, I
supported them both in a single class.
What do you think would be the best solution here?
As for your second point regarding `T <: Vector`, will fix it.
---
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.
---