[ https://issues.apache.org/jira/browse/LUCENE-4634?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Adrien Grand resolved LUCENE-4634. ---------------------------------- Resolution: Fixed > 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-unsubscr...@lucene.apache.org For additional commands, e-mail: dev-h...@lucene.apache.org