You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Trejkaz (JIRA)" <ji...@apache.org> on 2008/03/07 01:00:58 UTC

[jira] Created: (LUCENE-1206) Ability to store Reader / InputStream fields

Ability to store Reader / InputStream fields
--------------------------------------------

                 Key: LUCENE-1206
                 URL: https://issues.apache.org/jira/browse/LUCENE-1206
             Project: Lucene - Java
          Issue Type: New Feature
          Components: Index
            Reporter: Trejkaz


In some situations we would like to store the whole text, but the whole text won't always fit in memory so we can't create a String.  Likewise for storing binary, it would sometimes be better if we didn't have to read into a byte[] up-front (even when it doesn't use much memory, it increases the number of copies made and adds burden to GC.)

FieldsWriter currently writes the length at the start of the chunks though, so I don't know whether it would be possible to seek back and write the length after writing the data.

It would also be useful to use this in conjunction with compression, both for Reader and InputStream types.  And when retrieving the field, it should be possible to create a Reader without reading the entire String into memory up-front.


-- 
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