RE: indexedslicesQuery class error

2011-02-16 Thread Raoyixuan (Shandy)
Thanks . I change ss to bytebufferserializer. It works fine. From: Raoyixuan (Shandy) [mailto:raoyix...@huawei.com] Sent: Thursday, February 17, 2011 11:16 AM To: user@cassandra.apache.org Subject: RE: indexedslicesQuery class error I modify it as below StringSerializer ss

Re: indexedslicesQuery class error

2011-02-16 Thread Roshan Dawrani
Expression(String,String) in the type > IndexedSlicesQuery is not applicable for the > arguments(String,ByteBuffer) > > > > *From:* Roshan Dawrani [mailto:roshandawr...@gmail.com] > *Sent:* Thursday, February 17, 2011 10:54 AM > > *To:* user@cassandra.apache.org > *

RE: indexedslicesQuery class error

2011-02-16 Thread Raoyixuan (Shandy)
indexedSlicesQuery.execute(); It shows the error The method addGtExpression(String,String) in the type IndexedSlicesQuery is not applicable for the arguments(String,ByteBuffer) From: Roshan Dawrani [mailto:roshandawr...@gmail.com] Sent: Thursday, February 17, 2011 10:54 AM To: user@cassandra.ap

Re: indexedslicesQuery class error

2011-02-16 Thread Roshan Dawrani
*From:* Roshan Dawrani [mailto:roshandawr...@gmail.com] > *Sent:* Thursday, February 17, 2011 10:48 AM > > *To:* user@cassandra.apache.org > *Subject:* Re: indexedslicesQuery class error > > > > addGtEqual??? > > > > You are still making the same mistake. >

RE: indexedslicesQuery class error

2011-02-16 Thread Raoyixuan (Shandy)
But my requirement is get the data by birth_date and state , how to achieve it by hector client? From: Roshan Dawrani [mailto:roshandawr...@gmail.com] Sent: Thursday, February 17, 2011 10:48 AM To: user@cassandra.apache.org Subject: Re: indexedslicesQuery class error addGtEqual??? You are

Re: indexedslicesQuery class error

2011-02-16 Thread Roshan Dawrani
etStartKey(""); > QueryResult> result = > indexedSlicesQuery.execute(); > > It shows the error: > > The method addGtEqual IndexedSlicesQuery is not applicable for the > arguments(String,String) > > > > > > > > *From:* Roshan Dawrani [mailto:

RE: indexedslicesQuery class error

2011-02-16 Thread Raoyixuan (Shandy)
t = indexedSlicesQuery.execute(); It shows the error: The method addGtEqual is not applicable for the arguments(String,String) From: Roshan Dawrani [mailto:roshandawr...@gmail.com] Sent: Thursday, February 17, 2011 10:37 AM To: user@cassandra.apache.org Subject: Re: indexedslicesQuery

Re: indexedslicesQuery class error

2011-02-16 Thread Roshan Dawrani
That's because in createIndexedSlicesQuery(), you have used SS as the valueSerializer, and then in addGtExpression("birth_date", 1970L), you pass a long as the value. @see: https://groups.google.com/group/hector-users/browse_thread/thread/520c5332dedfca4a 2011/2/17 Raoyixuan (Shandy) > I do th

indexedslicesQuery class error

2011-02-16 Thread Raoyixuan (Shandy)
I do the range query by the hector client when the state and birht_date columns are both indexed, it show the error: The method addGtExpression(String,String) in the type IndexedSlicesQuery is not applicable for the arguments(String,long) The code is as below: StringSerializer ss = StringSer