Return-Path: X-Original-To: apmail-lucene-dev-archive@www.apache.org Delivered-To: apmail-lucene-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id F0F47D745 for ; Tue, 18 Dec 2012 22:52:13 +0000 (UTC) Received: (qmail 9982 invoked by uid 500); 18 Dec 2012 22:52:12 -0000 Delivered-To: apmail-lucene-dev-archive@lucene.apache.org Received: (qmail 9900 invoked by uid 500); 18 Dec 2012 22:52:12 -0000 Mailing-List: contact dev-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@lucene.apache.org Delivered-To: mailing list dev@lucene.apache.org Received: (qmail 9892 invoked by uid 99); 18 Dec 2012 22:52:12 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 18 Dec 2012 22:52:12 +0000 Date: Tue, 18 Dec 2012 22:52:12 +0000 (UTC) From: "Adrien Grand (JIRA)" To: dev@lucene.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (LUCENE-4634) PackedInts: streaming API that supports variable numbers of bits per value MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ 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