incubator-cassandra-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Aklin_81 <asdk...@gmail.com>
Subject Re: Reading a bunch of rows pointed out by column names of columns in some row
Date Sat, 19 Feb 2011 19:35:33 GMT
anyone who can share what is the most recommended way of doing this


On Sat, Feb 19, 2011 at 7:12 PM, Aklin_81 <asdkl93@gmail.com> wrote:
> Is there a way to just ask for column names in a row to get just a
> column names list (and not the entire <column<String,String>>). I am
> using Hector.
>
> I have a row of valueless columns (whose column names are keys to
> another set of rows) & I wish to retrieve a list of those column names
> and send it in another query to retrieve the corresponding rows
> pointed by each of those columns.
>
> Now if I do a normal query I get list of columns like:
> List <Column <String, String>>
>
> but I would need to pass to another query as just column names list like:
> List <String>
>
> Is there any method in java which could transforms this list in a
> better way, rather than iterating over each column and extracting its
> name into another list ?
> What would be the best way to do such queries?
>

Mime
View raw message