Class OBalancedClusterSelectionStrategy
java.lang.Object
com.orientechnologies.orient.core.metadata.schema.clusterselection.OBalancedClusterSelectionStrategy
- All Implemented Interfaces:
OClusterSelectionStrategy
Returns the cluster selecting the most empty between all configured clusters.
- Author:
- Luca Garulli (l.garulli--(at)--orientdb.com)
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected longstatic final Stringprotected static final longprotected int -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintgetCluster(OClass iClass, int[] clusters, ODocument doc) intgetCluster(OClass iClass, ODocument doc) getName()
-
Field Details
-
NAME
- See Also:
-
REFRESH_TIMEOUT
protected static final long REFRESH_TIMEOUT- See Also:
-
lastCount
protected long lastCount -
smallerClusterId
protected int smallerClusterId
-
-
Constructor Details
-
OBalancedClusterSelectionStrategy
public OBalancedClusterSelectionStrategy()
-
-
Method Details
-
getCluster
- Specified by:
getClusterin interfaceOClusterSelectionStrategy
-
getCluster
- Specified by:
getClusterin interfaceOClusterSelectionStrategy
-
getName
- Specified by:
getNamein interfaceOClusterSelectionStrategy
-