Skip to content

Instantly share code, notes, and snippets.

@posulliv
Created February 28, 2011 01:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save posulliv/846782 to your computer and use it in GitHub Desktop.
Save posulliv/846782 to your computer and use it in GitHub Desktop.
IndexedSlicesQuery query;
vector<string> column_names;
column_names.push_back("full_name");
column_names.push_back("birth_date");
column_names.push_back("state");
query.setColumns(column_names);
query.addGtExpression("birth_date", 1970);
query.addEqualsExpression("state", "UT");
query.setColumnFamily("users");
map<string, map<string, string> > res= c->getIndexedSlices(query);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment