org.codehaus.wadi.impl
Class SimplePartitionMapper
java.lang.Object
org.codehaus.wadi.impl.SimplePartitionMapper
- All Implemented Interfaces:
- PartitionMapper
- public class SimplePartitionMapper
- extends Object
- implements PartitionMapper
Method Summary |
int |
map(Object key)
Given a key, map it to the corresponding Partition index. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
_numPartitions
protected final int _numPartitions
SimplePartitionMapper
public SimplePartitionMapper(int numPartitions)
map
public int map(Object key)
- Description copied from interface:
PartitionMapper
- Given a key, map it to the corresponding Partition index.
- Specified by:
map
in interface PartitionMapper
- Parameters:
key
-
- Returns:
Copyright © 2004-2008 Core Developers Network Ltd.. All Rights Reserved.