Github user mengxr commented on the pull request:
https://github.com/apache/spark/pull/8042#issuecomment-130159360
@feynmanliang The contract for Java's `Object` is that `a.equals(b)`
implies `a.hashCode == b.hashCode`. So usually we need to implement both. The
problem with `hashCode` is that we shouldn't compute it based on all values,
which could be very expensive. You can use the implementation of
`Vector.hashCode` as a template, but that requires some changes to avoid hash
code collisions.
---
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.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]