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] [Created] (LUCENE-4634) PackedInts: streaming API that supports variable numbers of bits per value
Date Tue, 18 Dec 2012 13:20:12 GMT
Adrien Grand created LUCENE-4634:
------------------------------------

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


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