You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Woody Anderson (JIRA)" <ji...@apache.org> on 2010/07/16 04:48:50 UTC

[jira] Updated: (LUCENE-2539) add initial capacity based Document constructor

     [ 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

2 new constructors.
initialCapacity, and actual List to use. Document fields list is also final, thus verifying it is correctly initialized and not overwritten later.

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