com.senseidb.indexing
Class ShardingStrategy.FieldModShardingStrategy
java.lang.Object
   com.senseidb.indexing.ShardingStrategy.FieldModShardingStrategy
com.senseidb.indexing.ShardingStrategy.FieldModShardingStrategy
- All Implemented Interfaces: 
- ShardingStrategy
- Enclosing interface:
- ShardingStrategy
- public static class ShardingStrategy.FieldModShardingStrategy 
- extends Object- implements ShardingStrategy
 
 
 
 
| Method Summary | 
|  int | caculateShard(int maxShardId,
              org.json.JSONObject dataObj)
 | 
 
| Methods inherited from class java.lang.Object | 
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
 
_field
protected String _field
ShardingStrategy.FieldModShardingStrategy
public ShardingStrategy.FieldModShardingStrategy(String field)
caculateShard
public int caculateShard(int maxShardId,
                         org.json.JSONObject dataObj)
                  throws org.json.JSONException
- 
- Specified by:
- caculateShardin interface- ShardingStrategy
 
- 
- Throws:
- org.json.JSONException
 
Copyright © 2010-2012. All Rights Reserved.