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 2E98FDC8A for ; Fri, 21 Dec 2012 15:35:14 +0000 (UTC) Received: (qmail 95706 invoked by uid 500); 21 Dec 2012 15:35:13 -0000 Delivered-To: apmail-lucene-dev-archive@lucene.apache.org Received: (qmail 95630 invoked by uid 500); 21 Dec 2012 15:35: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 95615 invoked by uid 99); 21 Dec 2012 15:35:12 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 21 Dec 2012 15:35:12 +0000 Date: Fri, 21 Dec 2012 15:35:12 +0000 (UTC) From: "Adrien Grand (JIRA)" To: dev@lucene.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (LUCENE-4643) PackedInts: convenience classes to write blocks of packed ints 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-4643?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Adrien Grand updated LUCENE-4643: --------------------------------- Attachment: LUCENE-4643.patch Patch. This should be useful for LUCENE-4609 and LUCENE-4599, what do you think? > PackedInts: convenience classes to write blocks of packed ints > -------------------------------------------------------------- > > Key: LUCENE-4643 > URL: https://issues.apache.org/jira/browse/LUCENE-4643 > Project: Lucene - Core > Issue Type: Bug > Reporter: Adrien Grand > Assignee: Adrien Grand > Priority: Minor > Attachments: LUCENE-4643.patch > > > It is often useful to divide a packed stream into fixed blocks which are all compressed independently: > * if your sequence of ints is very large, you won't have to buffer everything into memory to compute the required number of bits per value, > * the compression ratio will be better in case of rare extreme values. > The only drawback compared to the original PackedInts API is that the stream cannot be directly used to deserialize a random-access PackedInts.Reader (but for sequential access, this is just fine). -- 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