[ 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