Return-Path: Delivered-To: apmail-cassandra-commits-archive@www.apache.org Received: (qmail 16111 invoked from network); 20 Jul 2010 17:36:20 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 20 Jul 2010 17:36:20 -0000 Received: (qmail 7057 invoked by uid 500); 20 Jul 2010 17:36:20 -0000 Delivered-To: apmail-cassandra-commits-archive@cassandra.apache.org Received: (qmail 7049 invoked by uid 500); 20 Jul 2010 17:36:19 -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 7041 invoked by uid 99); 20 Jul 2010 17:36:19 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 20 Jul 2010 17:36:19 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.22] (HELO thor.apache.org) (140.211.11.22) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 20 Jul 2010 17:36:16 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id o6KHZtge000930 for ; Tue, 20 Jul 2010 17:35:55 GMT Message-ID: <526480.478971279647355113.JavaMail.jira@thor> Date: Tue, 20 Jul 2010 13:35:55 -0400 (EDT) From: "Folke Behrens (JIRA)" To: commits@cassandra.apache.org Subject: [jira] Commented: (CASSANDRA-1282) NumericType: comparator for integers of fixed and arbitrary length In-Reply-To: <13447631.389661279160210375.JavaMail.jira@thor> 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-1282?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12890340#action_12890340 ] Folke Behrens commented on CASSANDRA-1282: ------------------------------------------ Very true. By the way, BytesType needs to be fixed, too. CASSANDRA-242 dropped the initial length == 0 check and now BytesType allows null values. > NumericType: comparator for integers of fixed and arbitrary length > ------------------------------------------------------------------ > > Key: CASSANDRA-1282 > URL: https://issues.apache.org/jira/browse/CASSANDRA-1282 > Project: Cassandra > Issue Type: New Feature > Components: Core > Reporter: Folke Behrens > Assignee: Folke Behrens > Fix For: 0.7 > > Attachments: 0001-NumericType.patch.txt, trunk-1282.txt > > > Patch introduces a new column comparator: NumericType. It can compare signed integer values of fixed (int, long) and arbitrary length (BigInteger). Both can be mixed. Leading zero bytes or 0xFF bytes will be ignored and can safely be stripped on compaction. > The trivial version uses "new BigInteger(byte[]).compareTo(new BigInteger(byte[]))" but it's slower and fills up memory. > The faster version operates completely on stack and should even obsolete LongType. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.