incubator-cassandra-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hiller, Dean" <Dean.Hil...@nrel.gov>
Subject Re: Astyanax empty column check
Date Wed, 17 Oct 2012 12:34:32 GMT
What specifically are you trying to achieve?  The business requirement might help as there
are other ways of solving it such that you do not need to know the difference.

Dean

From: Xu Renjie <xrjxrjxrjnet@gmail.com<mailto:xrjxrjxrjnet@gmail.com>>
Reply-To: "user@cassandra.apache.org<mailto:user@cassandra.apache.org>" <user@cassandra.apache.org<mailto:user@cassandra.apache.org>>
Date: Wednesday, October 17, 2012 4:48 AM
To: "user@cassandra.apache.org<mailto:user@cassandra.apache.org>" <user@cassandra.apache.org<mailto:user@cassandra.apache.org>>
Subject: Re: Astyanax empty column check

So what you mean is essentially there is *no* way to differentiate it because what they "appear"
is the same?

On Wed, Oct 17, 2012 at 5:58 PM, rohit bhatia <rohit2412@gmail.com<mailto:rohit2412@gmail.com>>
wrote:
See
"If you attempt to retrieve an entire row and it returns a result with
no columns, it effectively means that row does not exist."
Essentially a row without co

http://stackoverflow.com/questions/8072253/is-there-a-difference-between-an-empty-key-and-a-key-that-doesnt-exist

lumns doesn't exist.. (except those with tombstones)
 from here
On Wed, Oct 17, 2012 at 2:17 PM, Xu Renjie <xrjxrjxrjnet@gmail.com<mailto:xrjxrjxrjnet@gmail.com>>
wrote:
> Sorry for the version, I am using 1.0.1 Astyanax.
>
>
> On Wed, Oct 17, 2012 at 4:44 PM, Xu Renjie <xrjxrjxrjnet@gmail.com<mailto:xrjxrjxrjnet@gmail.com>>
wrote:
>>
>> hello guys,
>>    I am currently using Astyanax as a client(new to Astyanax). But I am
>> not clear how to differentiate the following 2 situations:
>> a. A row which has only key without columns
>> b. No this row in database.
>>
>> Since when I use RowQuery to query Cassandra with given key, both the
>> above two situations will return a ColumnList
>> with size 0. And also I didn't find other api can handle this.
>> Do you have any better way for this? Thanks in advance.
>> Cheers,
>> Xu
>
>


Mime
View raw message