Package org.apache.solr.core
Class CoreSorter
- java.lang.Object
-
- org.apache.solr.core.CoreSorter
-
public class CoreSorter extends Object
This is a utility class that sorts cores in such a way as to minimize other cores waiting for replicas in the current node. This helps in avoiding leaderVote timeouts happening in other nodes of the cluster
-
-
Field Summary
Fields Modifier and Type Field Description static Comparator<org.apache.solr.core.CoreSorter.CountsForEachShard>
countsComparator
-
Constructor Summary
Constructors Constructor Description CoreSorter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
compare(CoreDescriptor cd1, CoreDescriptor cd2)
CoreSorter
init(CoreContainer cc)
-
-
-
Field Detail
-
countsComparator
public static final Comparator<org.apache.solr.core.CoreSorter.CountsForEachShard> countsComparator
-
-
Method Detail
-
init
public CoreSorter init(CoreContainer cc)
-
compare
public int compare(CoreDescriptor cd1, CoreDescriptor cd2)
-
-