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 0B5AD4F76 for ; Mon, 9 May 2011 12:56:45 +0000 (UTC) Received: (qmail 85291 invoked by uid 500); 9 May 2011 12:56:44 -0000 Delivered-To: apmail-cassandra-commits-archive@cassandra.apache.org Received: (qmail 85262 invoked by uid 500); 9 May 2011 12:56:44 -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 85254 invoked by uid 99); 9 May 2011 12:56:44 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 09 May 2011 12:56:44 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,T_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; Mon, 09 May 2011 12:56:42 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 22961C8CFC for ; Mon, 9 May 2011 12:56:03 +0000 (UTC) Date: Mon, 9 May 2011 12:56:03 +0000 (UTC) From: "Sylvain Lebresne (JIRA)" To: commits@cassandra.apache.org Message-ID: <1737164429.32275.1304945763138.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <888923736.11792.1300460009702.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Updated] (CASSANDRA-2355) Allow parameters for comparator 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-2355?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Sylvain Lebresne updated CASSANDRA-2355: ---------------------------------------- Attachment: 0001-Allow-comparators-to-take-arguments-ReversedType-v4.patch Attaching v4 that is rebased against current trunk. > Allow parameters for comparator > ------------------------------- > > Key: CASSANDRA-2355 > URL: https://issues.apache.org/jira/browse/CASSANDRA-2355 > Project: Cassandra > Issue Type: New Feature > Components: Core > Reporter: Sylvain Lebresne > Assignee: Sylvain Lebresne > Priority: Minor > Fix For: 0.8.1 > > Attachments: 0001-Allow-comparators-to-take-arguments-ReversedType-v3.patch, 0001-Allow-comparators-to-take-arguments-ReversedType-v4.patch, 0001-Allow-comparators-to-take-arguments-ReversedType_0.7.patch, Allow-comparators-to-take-arguments-ReversedType.patch > > Original Estimate: 4h > Remaining Estimate: 4h > > Being able to provide arguments to a comparator, to parametrize its behavior, can be useful. > For example, a generic ReverseComparator is trivial to write, but without the ability to provide arguments at the comparator constriction, it cannot be used. > CASSANDRA-2231 provides another use case for this. > This ticket proposes to introduce a parser for comparator definition that supports optional parameters and to introduce a generic ReverseType as a simple example of this. -- This message is automatically generated by JIRA. For more information on JIRA, see: http://www.atlassian.com/software/jira