johnyangk commented on a change in pull request #91: [NEMO-3] Bump up the Beam
version to 2.5.0
URL: https://github.com/apache/incubator-nemo/pull/91#discussion_r208192414
##########
File path:
runtime/executor/src/main/java/edu/snu/nemo/runtime/executor/data/partitioner/DataSkewHashPartitioner.java
##########
@@ -60,6 +60,11 @@ public DataSkewHashPartitioner(final int
hashRangeMultiplier,
*/
@Override
public Integer partition(final Object element) {
- return Math.abs(keyExtractor.extractKey(element).hashCode() % hashRange);
+ final Object key = keyExtractor.extractKey(element);
Review comment:
Ditto.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services