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 and Description
    --- | ---
    `static Comparator<org.apache.solr.core.CoreSorter.CountsForEachShard>` | `countsComparator`

  - ### Constructor Summary

    Constructors
    Constructor and Description
    `CoreSorter()`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `int` | `compare(CoreDescriptor cd1, CoreDescriptor cd2)`
    `CoreSorter` | `init(CoreContainer cc)`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Field Detail

    - #### countsComparator

          public static final Comparator<org.apache.solr.core.CoreSorter.CountsForEachShard> countsComparator

  - ### Constructor Detail

    - #### CoreSorter

          public CoreSorter()

  - ### Method Detail

    - #### init

          public CoreSorter init(CoreContainer cc)

    - #### compare

          public int compare(CoreDescriptor cd1,
                             CoreDescriptor cd2)

Copyright © 2000-2016 Apache Software Foundation. All Rights Reserved.