[
https://issues.apache.org/jira/browse/SOLR-12587?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16555979#comment-16555979
]
Varun Thacker commented on SOLR-12587:
--------------------------------------
Hi Adrien,
I thought about that approach initially but won't {{proto}} be null at that
point?
{code:java}
public SortQueue(int len, SortDoc proto) {
super(len, true);
this.proto = proto;
..
}
@Override
protected SortDoc getSentinelObject() {
return proto.copy(); //proto has not been initialized
}{code}
> Reuse Lucene's PriorityQueue for the ExportHandler
> --------------------------------------------------
>
> Key: SOLR-12587
> URL: https://issues.apache.org/jira/browse/SOLR-12587
> Project: Solr
> Issue Type: Improvement
> Security Level: Public(Default Security Level. Issues are Public)
> Reporter: Varun Thacker
> Assignee: Varun Thacker
> Priority: Major
> Labels: export-writer
> Attachments: SOLR-12587.patch
>
>
> We have a priority queue in Lucene {{org.apache.lucene.utilPriorityQueue}} .
> The Export Handler also implements a PriorityQueue
> {{org.apache.solr.handler.export.PriorityQueue}} . Both are obviously very
> similar with minor API differences.
>
> The aim here is to reuse Lucene's PQ and remove the Solr implementation.
>
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]