You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@cassandra.apache.org by Dop Sun <su...@dopsun.com> on 2010/08/31 16:12:06 UTC
Two things about get_count API
Hi,
Two things about get_count API:
1)
In the http://wiki.apache.org/cassandra/API, there is only one get_count
method there:
i32 get_count(string keyspace, string key, ColumnParent column_parent,
ConsistencyLevel consistency_level)
But as per the Thrift Client API, it looks like the valid version is:
i32 get_count(string keyspace, string key, ColumnParent column_parent,
SlicePredicate predicate, ConsistencyLevel consistency_level)
And this is valid both 0.6.x and 0.7.beta1. Is this a documentation issue?
2)
Also, looks like in Cassandra 0.7 beta 1, the SlicePredicate changed a
little bit:
In 0.6.x, it seems that count accepts -1 in Cassandra 0.6.x (which in
practices, return all columns), but in 0.7 beta 1, negative not allowed. Is
this a newly introduced changes in 0.7.x?
Thanks,
Regard,
Dop
Re: Two things about get_count API
Posted by Jonathan Ellis <jb...@gmail.com>.
On Tue, Aug 31, 2010 at 9:12 AM, Dop Sun <su...@dopsun.com> wrote:
> But as per the Thrift Client API, it looks like the valid version is:
>
> i32 get_count(string keyspace, string key, ColumnParent column_parent, SlicePredicate predicate,
> ConsistencyLevel consistency_level)
>
>
>
> And this is valid both 0.6.x and 0.7.beta1. Is this a documentation issue?
This is not valid in 0.6.
> Also, looks like in Cassandra 0.7 beta 1, the SlicePredicate changed a
> little bit:
>
> In 0.6.x, it seems that count accepts -1 in Cassandra 0.6.x (which in
> practices, return all columns), but in 0.7 beta 1, negative not allowed. Is
> this a newly introduced changes in 0.7.x?
If it worked in 0.6 it was entirely accidental.
--
Jonathan Ellis
Project Chair, Apache Cassandra
co-founder of Riptano, the source for professional Cassandra support
http://riptano.com