cassandra-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andreas Markauskas <amarkausk...@gmail.com>
Subject What available Cassandra schema documentation is available?
Date Thu, 14 Jul 2011 07:39:01 GMT
I couldn't find any schema example for the supercolumn column family
that is strongly typed. For example,

create column family Super1 with comparator=UTF8Type and
column_type=Super and key_validation_class=UTF8Type and
column_metadata = [
{column_name: username, validation_class:UTF8Type},
{column_name: email, validation_class:UTF8Type, index_type: KEYS},
{column_name: address, validation_class:UTF8Type, subcolumn_metadata = [
{column_name: street, validation_class:UTF8Type},
{column_name: state, validation_class:UTF8Type, index_type: KEYS}
]
}
];

Or does someone know a better method? I like to make it as painless as
possible for developers with a strongly typed schema so as to avoid
orphan data.

Mime
View raw message