Return-Path: X-Original-To: apmail-cassandra-commits-archive@www.apache.org Delivered-To: apmail-cassandra-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 289A37CCA for ; Tue, 23 Aug 2011 23:41:54 +0000 (UTC) Received: (qmail 67910 invoked by uid 500); 23 Aug 2011 23:41:53 -0000 Delivered-To: apmail-cassandra-commits-archive@cassandra.apache.org Received: (qmail 67784 invoked by uid 500); 23 Aug 2011 23:41:53 -0000 Mailing-List: contact commits-help@cassandra.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cassandra.apache.org Delivered-To: mailing list commits@cassandra.apache.org Received: (qmail 67774 invoked by uid 99); 23 Aug 2011 23:41:53 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 23 Aug 2011 23:41:53 +0000 X-ASF-Spam-Status: No, hits=-2000.9 required=5.0 tests=ALL_TRUSTED,RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 23 Aug 2011 23:41:51 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 46D8ECC112 for ; Tue, 23 Aug 2011 23:41:30 +0000 (UTC) Date: Tue, 23 Aug 2011 23:41:30 +0000 (UTC) From: "Stu Hood (JIRA)" To: commits@cassandra.apache.org Message-ID: <598750778.7454.1314142890287.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <1569105481.17306.1301340725656.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Updated] (CASSANDRA-2398) Type specific compression MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/CASSANDRA-2398?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Stu Hood updated CASSANDRA-2398: -------------------------------- Attachment: 0002-CASSANDRA-2398-Type-specific-compression-for-counters.txt 0001-CASSANDRA-2398-Add-type-specific-compression-to-Abstra.txt Rebased for trunk. > Type specific compression > ------------------------- > > Key: CASSANDRA-2398 > URL: https://issues.apache.org/jira/browse/CASSANDRA-2398 > Project: Cassandra > Issue Type: New Feature > Components: Core > Reporter: Stu Hood > Labels: compression > Fix For: 1.0 > > Attachments: 0001-CASSANDRA-2398-Add-type-specific-compression-to-Abstra.txt, 0002-CASSANDRA-2398-Type-specific-compression-for-counters.txt, compress-lzf-0.7.0.jar > > > Cassandra has a lot of locations that are ripe for type specific compression. A short list: > Indexes > * Keys compressed as BytesType, which could default to LZO/LZMA > * Offsets (delta and varint encoding) > * Column names added by 2319 > Data > * Keys, columns, timestamps: see http://wiki.apache.org/cassandra/FileFormatDesignDoc > A basic interface for type specific compression could be as simple as: > {code:java} > public void compress(int version, final List from, DataOutput to) throws IOException > public void decompress(int version, DataInput from, List to) throws IOException > public void skip(int version, DataInput from) throws IOException > {code} -- This message is automatically generated by JIRA. For more information on JIRA, see: http://www.atlassian.com/software/jira