Class OAutoShardingClusterSelectionStrategy
java.lang.Object
com.orientechnologies.orient.core.sharding.auto.OAutoShardingClusterSelectionStrategy
- All Implemented Interfaces:
OClusterSelectionStrategy
public class OAutoShardingClusterSelectionStrategy
extends Object
implements OClusterSelectionStrategy
Returns the cluster selecting through the hash function.
- Since:
- 3.0
- Author:
- Luca Garulli (l.garulli--(at)--orientdb.com)
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionOAutoShardingClusterSelectionStrategy(OClass clazz, OIndex autoShardingIndex) -
Method Summary
Modifier and TypeMethodDescriptionintgetCluster(OClass iClass, int[] clusters, ODocument doc) intgetCluster(OClass clazz, ODocument doc) getName()
-
Field Details
-
NAME
- See Also:
-
-
Constructor Details
-
OAutoShardingClusterSelectionStrategy
public OAutoShardingClusterSelectionStrategy() -
OAutoShardingClusterSelectionStrategy
-
-
Method Details
-
getCluster
- Specified by:
getClusterin interfaceOClusterSelectionStrategy
-
getCluster
- Specified by:
getClusterin interfaceOClusterSelectionStrategy
-
getName
- Specified by:
getNamein interfaceOClusterSelectionStrategy
-