there is org.apache.hadoop.util.PriorityQueue. Which i think will do the job
On Wed, Aug 5, 2009 at 10:10 PM, Robin Anil <robin.a...@gmail.com> wrote: > I have say a million objects which needs to be inserted very fast and only > top K needs to be kept based on a comparator > > > > > On Wed, Aug 5, 2009 at 10:07 PM, Sean Owen <sro...@gmail.com> wrote: > >> Does java.util.PriorityQueue meet your needs? >> >> On Wed, Aug 5, 2009 at 5:33 PM, Robin Anil<robin.a...@gmail.com> wrote: >> > Is there any Min/MaxHeap implementation (non GPL) to include as part of >> > Mahout >> > >> > >