incubator-cassandra-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Juan Ezquerro <j...@sofistic.net>
Subject composite key
Date Fri, 22 Jun 2012 17:49:33 GMT
Hi,

I have a column family like:

CREATE COLUMN FAMILY Clients
    WITH key_validation_class = 'CompositeType(LongType,LongType)'  --
master_id,client_id
    AND comparator = UTF8Type
    AND column_metadata = [
    {column_name: client_name, validation_class: UTF8Type,index_type: KEYS}
    ];

The key are like:

1:12345
1:67890
6:12345
6:67890
11:12345
11:67890

I would like to get keys who start with 1, i try with for example:

$start = array(1);
$end = array(1);

$cf->get_range($start,$end);

I try a lot of combo but not work, can help please?

I expect:

1:12345
1:67890

-- 
Juan Ezquerro LLanes <Sofistic Team>

Telf: 618349107/964051479

Mime
View raw message