com.senseidb.indexing
Class ShardingStrategy.FieldModShardingStrategy

java.lang.Object
  extended by com.senseidb.indexing.ShardingStrategy.FieldModShardingStrategy
All Implemented Interfaces:
ShardingStrategy
Enclosing interface:
ShardingStrategy

public static class ShardingStrategy.FieldModShardingStrategy
extends Object
implements ShardingStrategy


Nested Class Summary
 
Nested classes/interfaces inherited from interface com.senseidb.indexing.ShardingStrategy
ShardingStrategy.FieldModShardingStrategy
 
Field Summary
protected  String _field
           
 
Constructor Summary
ShardingStrategy.FieldModShardingStrategy(String field)
           
 
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 Detail

_field

protected String _field
Constructor Detail

ShardingStrategy.FieldModShardingStrategy

public ShardingStrategy.FieldModShardingStrategy(String field)
Method Detail

caculateShard

public int caculateShard(int maxShardId,
                         org.json.JSONObject dataObj)
                  throws org.json.JSONException
Specified by:
caculateShard in interface ShardingStrategy
Throws:
org.json.JSONException


Copyright © 2010-2012. All Rights Reserved.