public final class DisiPriorityQueue<Iter extends DocIdSetIterator> extends Object implements Iterable<DisiWrapper<Iter>>
PriorityQueue
because the
pluggable comparison function makes the rebalancing quite slow.Constructor and Description |
---|
DisiPriorityQueue(int maxSize) |
Modifier and Type | Method and Description |
---|---|
DisiWrapper<Iter> |
add(DisiWrapper<Iter> entry) |
Iterator<DisiWrapper<Iter>> |
iterator() |
DisiWrapper<Iter> |
pop() |
int |
size() |
DisiWrapper<Iter> |
top() |
DisiWrapper<Iter> |
topList()
Get the list of scorers which are on the current doc.
|
DisiWrapper<Iter> |
updateTop() |
public int size()
public DisiWrapper<Iter> top()
public DisiWrapper<Iter> topList()
public DisiWrapper<Iter> add(DisiWrapper<Iter> entry)
public DisiWrapper<Iter> pop()
public DisiWrapper<Iter> updateTop()
public Iterator<DisiWrapper<Iter>> iterator()
iterator
in interface Iterable<DisiWrapper<Iter extends DocIdSetIterator>>
Copyright © 2000-2015 Apache Software Foundation. All Rights Reserved.