Skip to content
This repository has been archived by the owner on Jun 12, 2020. It is now read-only.

Please document how to use Composite Columns #17

Open
jacek99 opened this issue Aug 23, 2013 · 1 comment
Open

Please document how to use Composite Columns #17

jacek99 opened this issue Aug 23, 2013 · 1 comment

Comments

@jacek99
Copy link

jacek99 commented Aug 23, 2013

Would it be possible to update the docs to show how to save/query composite columns and how to do column range queries on composite columns?

We do this all the time in Astyanax on Java, so we are trying to find out how to do the same thing in gossie

thank you

@carloscm
Copy link
Owner

The document actually uses a composited CF in its example. You can use Components() with one or more values for composite components in Query, and leave the others free to range over them, and Between() to make a range query over the last composite component value. As for the struct mapping you use cols to tell Gossie which struct fields are part of the composite column name. This minimal interface actually exposes all the available functionality in (non-dynamic) composite column names circa Cassandra 1.0, but I believe "fat" clients like Astyanax go a lot farther than this and build higher level abstractions that hide those details to the developer.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants