org.codehaus.wadi.impl
Class SimplePartitionMapper

java.lang.Object
  extended byorg.codehaus.wadi.impl.SimplePartitionMapper
All Implemented Interfaces:
PartitionMapper

public class SimplePartitionMapper
extends Object
implements PartitionMapper


Field Summary
protected  int _numPartitions
           
 
Constructor Summary
SimplePartitionMapper(int numPartitions)
           
 
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
 

Field Detail

_numPartitions

protected final int _numPartitions
Constructor Detail

SimplePartitionMapper

public SimplePartitionMapper(int numPartitions)
Method Detail

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-2006 Core Developers Network Ltd.. All Rights Reserved.