[
https://issues.apache.org/jira/browse/LUCENE-2539?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Woody Anderson updated LUCENE-2539:
-----------------------------------
Attachment: LUCENE-2539.patch
unit test added, with IllegalArgumentException thrown if the given fields list
is null, or capacity is negative.
> add initial capacity based Document constructor
> -----------------------------------------------
>
> Key: LUCENE-2539
> URL: https://issues.apache.org/jira/browse/LUCENE-2539
> Project: Lucene - Java
> Issue Type: Improvement
> Components: Other
> Affects Versions: 3.0.2
> Reporter: Woody Anderson
> Priority: Minor
> Fix For: 3.0.2, 4.0
>
> Attachments: LUCENE-2539.patch, LUCENE-2539.patch, LUCENE-2539.patch
>
>
> When loading field from the index without a FieldSelector, and often in user
> code we know exactly how many fields a Document should have. This patch will
> simply add the ability to allocate Document memory for precisely.
> I will include as a separate patch where this would be useful in conjunction
> with patch [LUCENE-2276|https://issues.apache.org/jira/browse/LUCENE-2276].
--
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]