lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Adrien Grand (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (LUCENE-4634) PackedInts: streaming API that supports variable numbers of bits per value
Date Tue, 18 Dec 2012 22:52:12 GMT

     [ https://issues.apache.org/jira/browse/LUCENE-4634?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Adrien Grand updated LUCENE-4634:
---------------------------------

    Attachment: LUCENE-4634.patch

Here is a patch. (I would like to use it for LUCENE-4599.)
                
> PackedInts: streaming API that supports variable numbers of bits per value
> --------------------------------------------------------------------------
>
>                 Key: LUCENE-4634
>                 URL: https://issues.apache.org/jira/browse/LUCENE-4634
>             Project: Lucene - Core
>          Issue Type: Improvement
>          Components: core/other
>            Reporter: Adrien Grand
>            Assignee: Adrien Grand
>            Priority: Minor
>         Attachments: LUCENE-4634.patch
>
>
> It could be convenient to have a streaming API (writers and iterators, no random access)
that supports variable numbers of bits per value. Although this would be much slower than
the current fixed-size APIs, it could help save bytes in our codec formats.
> The API could look like:
> {code}
> Iterator {
>   long next(int bitsPerValue);
> }
> Writer {
>   void write(long value, int bitsPerValue); // assert PackedInts.bitsRequired(value)
<= bitsPerValue;
> }
> {code}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
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


Mime
View raw message