Interface Hasher<V>

public interface Hasher<V>

The Hasher allows a Comparator implementation to also be delegated to during hashCode generation during grouping partitioning.

If a Comparator is used to compare two types during grouping, its likely the hashCode value between the two objects will not be consistent. This allows to objects being equal to hash to the same bucket (reducer) during partitioning.

Method Summary
 int hashCode(V value)
          Return the hashCode of the given value.

Method Detail


int hashCode(V value)
Return the hashCode of the given value.

value - will never be null
int hashCode of given value

Copyright © 2007-2012 Concurrent, Inc. All Rights Reserved.