private static final class FieldValueHitQueue.MultiComparatorsFieldValueHitQueue<T extends FieldValueHitQueue.Entry> extends FieldValueHitQueue<T>
FieldValueHitQueue
which is optimized in case
there is more than one comparator.FieldValueHitQueue.Entry
comparators, fields, reverseMul
Constructor and Description |
---|
MultiComparatorsFieldValueHitQueue(SortField[] fields,
int size) |
Modifier and Type | Method and Description |
---|---|
protected boolean |
lessThan(FieldValueHitQueue.Entry hitA,
FieldValueHitQueue.Entry hitB)
Determines the ordering of objects in this priority queue.
|
create, fillFields, getComparators, getComparators, getFields, getReverseMul
add, clear, getHeapArray, insertWithOverflow, iterator, pop, remove, size, top, updateTop, updateTop
public MultiComparatorsFieldValueHitQueue(SortField[] fields, int size)
protected boolean lessThan(FieldValueHitQueue.Entry hitA, FieldValueHitQueue.Entry hitB)
PriorityQueue
lessThan
in class FieldValueHitQueue<T extends FieldValueHitQueue.Entry>
true
iff parameter a is less than parameter b.