|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface IHashFunction
Interface for a hash function to be applied to the keys generated by an
IMapTask. The hash function (modulo the #of reduce tasks) is
used to assign the key-value pairs generated by an IMapTask to a
reduce task.
| Method Summary | |
|---|---|
int |
hashCode(byte[] key)
The hash function used to assign map output keys to reduce tasks. |
| Method Detail |
|---|
int hashCode(byte[] key)
hash(key) mod R, where hash(key) is
Arrays.hashCode(byte[]) and R is the #of reduce tasks.
key - The key produced by an IMapTask.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||