[
https://issues.apache.org/jira/browse/CASSANDRA-2311?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Jon Hermes updated CASSANDRA-2311:
--
Attachment: 2311.txt
ThriftValidation.validateKeyInColumnFamily(key, ksname, cfname) is the only
tricky part to this patch. I have to first validate the key is legit and the
column family is legit before I can scan the cf for the keyValidator to use to
validate the key.
Past that, it's just standard adding an option to CFMD and the required 10k of
code that comes with it.
In related news, check out http://wiki.apache.org/cassandra/ConfigurationNotes
for standard adding an option to CFMD notes.
type validated row keys
---
Key: CASSANDRA-2311
URL: https://issues.apache.org/jira/browse/CASSANDRA-2311
Project: Cassandra
Issue Type: Improvement
Components: Core
Reporter: Eric Evans
Assignee: Jon Hermes
Labels: cql
Fix For: 0.8
Attachments: 2311.txt
The idea here is to allow the assignment of a column-family-wide key type
used to perform validation, (similar to how default_validation_class does for
column values).
This should be as straightforward as extending the column family schema to
include the new attribute, and updating {{ThriftValidation.validateKey}} to
validate the key ({{AbstractType.validate}}).
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira