[
https://issues.apache.org/jira/browse/LUCENE-1089?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Shai Erera updated LUCENE-1089:
-------------------------------
Attachment: PriorityQueue.patch
The fixes done are:
TopDocCollector:
1. Use insertWithOverflow instead of insert.
2. Get rid of unnecessary member variables (numHits and minScore).
TestPriorityQueue:
1. Add testInsertWithOverflow.
PriorityQueue:
1. Add insertWithOverflow
2. Change heap to protected.
3. user heap[1] in insert and insertWithOverflow instead of calling top().
> Add insertWithOverflow to PriorityQueue
> ---------------------------------------
>
> Key: LUCENE-1089
> URL: https://issues.apache.org/jira/browse/LUCENE-1089
> Project: Lucene - Java
> Issue Type: Improvement
> Affects Versions: 2.3
> Reporter: Shai Erera
> Fix For: 2.3
>
> Attachments: PriorityQueue.patch
>
>
> This feature proposes to add an insertWithOverflow to PriorityQueue so that
> callers can reuse the objects that are being dropped off the queue. Also, it
> changes heap to protected for easier extensibility of PQ
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]