You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Michael McCandless (Resolved) (JIRA)" <ji...@apache.org> on 2012/03/20 16:29:39 UTC
[jira] [Resolved] (LUCENE-2530) rename docsEnum.getBulkResult() to
make its role clearer
[ https://issues.apache.org/jira/browse/LUCENE-2530?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Michael McCandless resolved LUCENE-2530.
----------------------------------------
Resolution: Won't Fix
We removed bulk API in 4.0.
> rename docsEnum.getBulkResult() to make its role clearer
> --------------------------------------------------------
>
> Key: LUCENE-2530
> URL: https://issues.apache.org/jira/browse/LUCENE-2530
> Project: Lucene - Java
> Issue Type: Bug
> Components: core/index
> Affects Versions: 4.0
> Reporter: Andi Vajda
> Assignee: Michael McCandless
> Priority: Minor
> Fix For: 4.0
>
>
> Before docsEnum.read() can be called a BulkResult instance must be allocated for it (it == the default implementation of that method).
> This is done by calling docsEnum.getBulkResult(). Failure to call this method before read() is called results in a NullPointerException.
> It is somewhat counterintuitive to "get" the results of an operation before calling said operation.
> Maybe this method should be renamed to something more definite-sounding like obtainBulkResult() or prepareBulkResult() ?
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org