lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Tim Smith (JIRA)" <j...@apache.org>
Subject [jira] Commented: (LUCENE-1925) In IndexSearcher class, make subReader and docCount arrays protected so sub classes can access them
Date Thu, 24 Sep 2009 13:14:16 GMT

    [ https://issues.apache.org/jira/browse/LUCENE-1925?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12759111#action_12759111
] 

Tim Smith commented on LUCENE-1925:
-----------------------------------

i would also like to see a protected constructor that takes:
IndexSearcher(IndexReader reader, IndexReader[] subReaders, int[] docOffsets)

this way a subclass can avoid any constructor costs and pass exactly the sub readers/offsets
it wants
this constructor would also be marked "expert/subject to change" of course

> In IndexSearcher class, make subReader and docCount arrays protected so sub classes can
access them
> ---------------------------------------------------------------------------------------------------
>
>                 Key: LUCENE-1925
>                 URL: https://issues.apache.org/jira/browse/LUCENE-1925
>             Project: Lucene - Java
>          Issue Type: Improvement
>          Components: Search
>    Affects Versions: 2.9
>            Reporter: John Wang
>            Assignee: Michael McCandless
>             Fix For: 3.0
>
>
> Please make these two member variables protected so subclasses can access them, e.g.:
>   protected IndexReader[] subReaders;
>   protected int[] docStarts;
> Thanks

-- 
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: java-dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-dev-help@lucene.apache.org


Mime
View raw message