You can not get only the column name (which you are calling a key) you can
use get_range_slice which returns all the columns. When you specify an
empty byte array (new byte[0]{}) as the start and finish you get back all
the columns. From there you can return only the columns to the user in a
format that you like.


On Thu, Apr 4, 2013 at 2:18 PM, Drew Kutcharian <d...@venarc.com> wrote:

> Hey Guys,
>
> I'm working on a project and one of the requirements is to have a schema
> free CF where end users can insert arbitrary key/value pairs per row. What
> would be the best way to know what are all the "keys" that were inserted
> (preferably w/o any locking). For example,
>
> Row1 => key1 -> XXX, key2 -> XXX
> Row2 => key1 -> XXX, key3 -> XXX
> Row3 => key4 -> XXX, key5 -> XXX
> Row4 => key2 -> XXX, key5 -> XXX
> …
>
> The query would be give me all the inserted keys and the response would be
> {key1, key2, key3, key4, key5}
>
> Thanks,
>
> Drew
>
>

Reply via email to