incubator-cassandra-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jonathan Ellis <jbel...@gmail.com>
Subject Re: How to check whether one key exist ?
Date Sat, 27 Mar 2010 01:16:23 GMT
Keys don't exist without columns in Cassandra.  So the right answer
is, use get or get_slice to check for the column(s) that should be in
the key's row.

On Fri, Mar 26, 2010 at 7:56 PM, Jeff Zhang <zjffdu@gmail.com> wrote:
> Hi all,
>
> I'd like to check whether one key exist, currently my solution is to let the
> cassandra use the OrderPreservingPartitioner, and facilitate the
> get_key_range() API to check key's existence. I wonder whether there's other
> ways to do this ? Thanks.
>
>
>
> --
> Best Regards
>
> Jeff Zhang
>

Mime
View raw message