public class NodePreferenceRulesComparator extends Object implements Comparator<Object>
Constructor and Description |
---|
NodePreferenceRulesComparator(List<PreferenceRule> preferenceRules,
SolrParams requestParams,
ReplicaListTransformerFactory defaultRltFactory,
ReplicaListTransformerFactory stableRltFactory) |
NodePreferenceRulesComparator(List<PreferenceRule> preferenceRules,
SolrParams requestParams,
String nodeName,
String localHostAddress,
NodesSysPropsCacher sysPropsCache,
ReplicaListTransformerFactory defaultRltFactory,
ReplicaListTransformerFactory stableRltFactory) |
Modifier and Type | Method and Description |
---|---|
int |
compare(Object left,
Object right) |
ReplicaListTransformer |
getBaseReplicaListTransformer() |
List<PreferenceRule> |
getPreferenceRules() |
List<PreferenceRule> |
getSortRules() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
comparing, comparing, comparingDouble, comparingInt, comparingLong, equals, naturalOrder, nullsFirst, nullsLast, reversed, reverseOrder, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
public NodePreferenceRulesComparator(List<PreferenceRule> preferenceRules, SolrParams requestParams, ReplicaListTransformerFactory defaultRltFactory, ReplicaListTransformerFactory stableRltFactory)
public NodePreferenceRulesComparator(List<PreferenceRule> preferenceRules, SolrParams requestParams, String nodeName, String localHostAddress, NodesSysPropsCacher sysPropsCache, ReplicaListTransformerFactory defaultRltFactory, ReplicaListTransformerFactory stableRltFactory)
public ReplicaListTransformer getBaseReplicaListTransformer()
public int compare(Object left, Object right)
compare
in interface Comparator<Object>
public List<PreferenceRule> getSortRules()
public List<PreferenceRule> getPreferenceRules()
Copyright © 2000-2021 Apache Software Foundation. All Rights Reserved.