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, waitequalspublic final int compare(ShardRouting o1, ShardRouting o2)
compare in interface Comparator<ShardRouting>public static PriorityComparator getAllocationComparator(RoutingAllocation allocation)
Copyright © 2009–2017. All rights reserved.