cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sylvain Lebresne (JIRA)" <>
Subject [jira] [Updated] (CASSANDRA-2355) Allow parameters for comparator
Date Mon, 21 Mar 2011 14:19:06 GMT


Sylvain Lebresne updated CASSANDRA-2355:

    Attachment: Allow-comparators-to-take-arguments-ReversedType.patch

Attaching patch against 0.7.

It may be important to keep in mind that once you use a comparator with arguments, your node
become network incompatible with older nodes, since those older nodes won't be able to understand
the comparator shipping in new schema migrations. 

> Allow parameters for comparator
> -------------------------------
>                 Key: CASSANDRA-2355
>                 URL:
>             Project: Cassandra
>          Issue Type: Improvement
>          Components: Core
>            Reporter: Sylvain Lebresne
>            Assignee: Sylvain Lebresne
>            Priority: Minor
>             Fix For: 0.7.5
>         Attachments: 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
> 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:

View raw message