Re: Creating and using indices

2010-10-08 Thread Jonathan Ellis
On Fri, Oct 8, 2010 at 9:27 AM, Christian Decker wrote: > On Thu, Oct 7, 2010 at 6:25 PM, Jonathan Ellis wrote: >> No, LT[E] is not on the roadmap for primary index clauses (GT[E] is, >> for 0.7.1).  So you would want to create an index with an inverted >> comparator, to turn LTE into GTE. > > Hm

Re: Creating and using indices

2010-10-08 Thread Christian Decker
On Thu, Oct 7, 2010 at 6:25 PM, Jonathan Ellis wrote: > On Thu, Oct 7, 2010 at 10:13 AM, Christian Decker > wrote: > > So basically my indices should work? Is there a simple way to check that, > so > > that we can exclude that? > > > > Are LTE working (or on the roadmap for the 0.7.0 release)? >

Re: Creating and using indices

2010-10-08 Thread Christian Decker
That's exactly what I missed, thanks Tyler, I'll try and create the ColumnDefinition from scratch and see if I can get this to work :-) On Thu, Oct 7, 2010 at 5:49 PM, Tyler Hobbs wrote: > Actually, you're trying to add an index to an already existing column > family here, right? > > That's not

Re: Creating and using indices

2010-10-07 Thread Jonathan Ellis
On Thu, Oct 7, 2010 at 10:13 AM, Christian Decker wrote: > So basically my indices should work? Is there a simple way to check that, so > that we can exclude that? > > Are LTE working (or on the roadmap for the 0.7.0 release)? No, LT[E] is not on the roadmap for primary index clauses (GT[E] is, f

Re: Creating and using indices

2010-10-07 Thread Tyler Hobbs
Actually, you're trying to add an index to an already existing column family here, right? That's not yet supported, but should be soon. - Tyler On Thu, Oct 7, 2010 at 10:13 AM, Christian Decker < decker.christ...@gmail.com> wrote: > So basically my indices should work? Is there a simple way to

Re: Creating and using indices

2010-10-07 Thread Christian Decker
So basically my indices should work? Is there a simple way to check that, so that we can exclude that? Are LTE working (or on the roadmap for the 0.7.0 release)? Or does the EQ operator have to math anything or can I just add an EQ to a not existing value to get LTE working too? Regards, Chris O

Re: Creating and using indices

2010-10-07 Thread Petr Odut
What I've tested you must include at least one expression with EQ operator On Thu, Oct 7, 2010 at 3:45 PM, Matthew Dennis wrote: > If I remember correctly the only operator supported for secondary indexes > right now is EQ, not LTE (or the others). > > > On Thu, Oct 7, 2010 at 6:13 AM, Christian

Re: Creating and using indices

2010-10-07 Thread Matthew Dennis
If I remember correctly the only operator supported for secondary indexes right now is EQ, not LTE (or the others). On Thu, Oct 7, 2010 at 6:13 AM, Christian Decker wrote: > I'm currently trying to get started on secondary indices in Cassandra > 0.7.0svn, but without any luck so far. I have the

Creating and using indices

2010-10-07 Thread Christian Decker
I'm currently trying to get started on secondary indices in Cassandra 0.7.0svn, but without any luck so far. I have the following code that should create an index on ColA: KsDef ksDef = client.describe_keyspace("MyKeyspace"); > List cfs = ksDef.cf_defs; > String columnFamil