incubator-cassandra-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Vivek Mishra <mishra.v...@gmail.com>
Subject Re: Row iteration over indexed clause
Date Tue, 13 Mar 2012 13:03:43 GMT
Thanks.

*Attribute*

*Type*

*Default*

*Required*

*Description*

expressions

list<IndexExpression>

n/a

Y

The list of IndexExpression objects which must contain one EQ
IndexOperator among
the expressions

start_key

binary

n/a

Y

Start the index query at the specified key - can be set to '', i.e., an
empty byte array, to start with the first key

count

integer

100

Y

The number of results to which the index query will be constrained




How do i iterate using it? How do i ensure that it should not return me
previous results(without i need to keep something in-memory)?

This is the method i am looking into:

get_indexed_slices(ColumnParent column_parent, IndexClause index_clause,
SlicePredicate column_predicate, ConsistencyLevel consistency_level)

It does not have anything like count.


Thanks,
Vivek

On Tue, Mar 13, 2012 at 6:24 PM, Shimi Kiviti <shimi.k@gmail.com> wrote:

> Yes. use get_indexed_slices (http://wiki.apache.org/cassandra/API)
> On Tue, Mar 13, 2012 at 2:12 PM, Vivek Mishra <mishra.vivs@gmail.com>wrote:
>
>> Hi,
>> Is it possible to iterate and fetch in chunks using thrift API by
>> querying using "secondary indexes"?
>>
>> -Vivek
>>
>
>

Mime
View raw message