public abstract class PriorityComparator extends Object implements Comparator<ShardRouting>
Constructor and Description |
---|
PriorityComparator() |
Modifier and Type | Method and Description |
---|---|
int |
compare(ShardRouting o1,
ShardRouting o2) |
static PriorityComparator |
getAllocationComparator(RoutingAllocation allocation)
Returns a PriorityComparator that uses the RoutingAllocation index metadata to access the index setting per index.
|
protected abstract Settings |
getIndexSettings(String index) |
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 final int compare(ShardRouting o1, ShardRouting o2)
compare
in interface Comparator<ShardRouting>
public static PriorityComparator getAllocationComparator(RoutingAllocation allocation)
Copyright © 2009–2016. All rights reserved.