org.codehaus.wadi.location.partitionmanager
Class SimplePartitionMapper

java.lang.Object
  extended by org.codehaus.wadi.location.partitionmanager.SimplePartitionMapper
All Implemented Interfaces:
PartitionMapper

public class SimplePartitionMapper
extends java.lang.Object
implements PartitionMapper

Version:
$Revision: 2281 $
Author:
Jules Gosnell

Field Summary
protected  int _numPartitions
           
 
Constructor Summary
SimplePartitionMapper(int numPartitions)
           
 
Method Summary
 int map(java.lang.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(java.lang.Object key)
Description copied from interface: PartitionMapper
Given a key, map it to the corresponding Partition index.

Specified by:
map in interface PartitionMapper
Returns:


Copyright © 2010. All Rights Reserved.