[
https://issues.apache.org/jira/browse/LUCENE-4634?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13537781#comment-13537781
]
Commit Tag Bot commented on LUCENE-4634:
----------------------------------------
[branch_4x commit] Adrien Grand
http://svn.apache.org/viewvc?view=revision&revision=1424829
LUCENE-4634: New streaming API to read/write ints with arbitrary numbers of
bits per value (merged from r1424827).
> 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: [email protected]
For additional commands, e-mail: [email protected]