Return-Path: Delivered-To: apmail-cassandra-user-archive@www.apache.org Received: (qmail 82674 invoked from network); 17 Feb 2011 17:27:49 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 17 Feb 2011 17:27:49 -0000 Received: (qmail 84686 invoked by uid 500); 17 Feb 2011 17:27:47 -0000 Delivered-To: apmail-cassandra-user-archive@cassandra.apache.org Received: (qmail 84317 invoked by uid 500); 17 Feb 2011 17:27:43 -0000 Mailing-List: contact user-help@cassandra.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@cassandra.apache.org Delivered-To: mailing list user@cassandra.apache.org Received: (qmail 84309 invoked by uid 99); 17 Feb 2011 17:27:42 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 17 Feb 2011 17:27:42 +0000 X-ASF-Spam-Status: No, hits=0.7 required=5.0 tests=RCVD_IN_DNSWL_NONE,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (nike.apache.org: local policy) Received: from [72.167.82.90] (HELO p3plsmtpa01-10.prod.phx3.secureserver.net) (72.167.82.90) by apache.org (qpsmtpd/0.29) with SMTP; Thu, 17 Feb 2011 17:27:34 +0000 Received: (qmail 30302 invoked from network); 17 Feb 2011 17:27:11 -0000 Received: from unknown (97.77.98.34) by p3plsmtpa01-10.prod.phx3.secureserver.net (72.167.82.90) with ESMTP; 17 Feb 2011 17:27:09 -0000 From: "David G. Boney" Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Subject: Simple Compression Scheme Date: Thu, 17 Feb 2011 11:27:10 -0600 Message-Id: To: user@cassandra.apache.org Mime-Version: 1.0 (Apple Message framework v1082) X-Mailer: Apple Mail (2.1082) X-Virus-Checked: Checked by ClamAV on apache.org Below is a link for a simple client side compression scheme. I thought = this might be of interest for some members of the list. While column values and column names are easy to handle on the client = side, with the use of a custom column name comparator for the column = names, the fact that there is only one row partitioner for all column = families makes it complicated to use compression for the row keys if you = have multiple data types for the keys of the different column families. = Using properties of Unicode, the below scheme can differentiate between = uncompresses Unicode strings, compressed Unicode strings, uncompressed = UUIDs, and a pass through code for no compression for a one byte = penalty. For my project I only use Unicode strings and UUIDs for my row = keys, so this works well for me. The actual compression algorithm can = work with both short strings using a static probability table for = arithmetic coding compression and long strings using an adaptive = arithmetic coding compression You milage may vary. I will have code for = this design in a month or two. http://www.semanticartifacts.com/compression/compression.html ------------- Sincerely, David G. Boney dboney1@semanticartifacts.com http://www.semanticartifacts.com