SAMZA-1249: Fix equality for WindowKey for Non-keyed tumbling windows
authorvjagadish1989 <jvenkatr@linkedin.com>
Mon, 1 May 2017 20:57:25 +0000 (13:57 -0700)
committerJacob Maes <jmaes@linkedin.com>
Mon, 1 May 2017 20:57:25 +0000 (13:57 -0700)
commit81b17324689696f400f700277ef7b8faa2db484d
tree30389a32ef975aeb1e6a15f6df2187600c467942
parent20b427cc88c5f8d2a6b2e0283ce18b4b5f01cc17
SAMZA-1249: Fix equality for WindowKey for Non-keyed tumbling windows

- Fix a `ClassCastException` and an NPE when using Tumbling window without keys
- Fix equality and hashCode for `WindowKey`
- Refactor the `TestWindowOperator` unit tests using simpler types and a mock `MessageCollector`.

More details in `SAMZA-1249`

Author: vjagadish1989 <jvenkatr@linkedin.com>

Reviewers: Prateek Maheshwari <pmaheshw@linkedin.com>, Jacob Maes <jmaes@linkedin.com>

Closes #149 from vjagadish1989/samza-1249
samza-api/src/main/java/org/apache/samza/operators/windows/WindowKey.java
samza-api/src/main/java/org/apache/samza/operators/windows/Windows.java
samza-core/src/test/java/org/apache/samza/operators/TestWindowOperator.java