incubator-cassandra-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jeremy Dunck <jdu...@gmail.com>
Subject Re: Slice Query
Date Wed, 24 Mar 2010 12:56:25 GMT
On Wed, Mar 24, 2010 at 4:57 AM, Colin Vipurs <zodiaczx6@gmail.com> wrote:
...
> ColumnFamily {
>   'key1' {
>      'SuperColumn1' {
>         'Column1' : <somevalue>
>         'Column2' : <somevalue>
>      }
>      'SuperColumn2' {
>         'Column3' : <somevalue>
>      }
>   }
>   'key2' {
>      'SuperColumn1' {
>         'Column1' : <somevalue>
>      }
>    }
> }
>
> Could I get all keys/supercolumns where 'Column1' exists? fyi I'm
> using the Hector Java client for my work.

I think maybe you're asking because you want to perform schema migration.

If so, one option is to have client-side code that mutates to the
later schema upon encountering the old schema.
Another option is to have a schema-versioning column, and have a job
that fetches and mutates records w/ the old schema.

If there are other ways of handling schema migration, I'm curious?

Mime
View raw message