Skip to content

Instantly share code, notes, and snippets.

@dboundz
Created August 25, 2013 14:58
Show Gist options
  • Save dboundz/6334280 to your computer and use it in GitHub Desktop.
Save dboundz/6334280 to your computer and use it in GitHub Desktop.
SliceQuery
SliceQuery<String, String, String> query = HFactory.createSliceQuery(CassandraHelper.keyspace, CassandraHelper.STRING_SERIALIZER, CassandraHelper.STRING_SERIALIZER, CassandraHelper.STRING_SERIALIZER);
query.setColumnFamily("user_graph")
.setRange("", "", true, 50)
.setColumnNames(targetUserId)
.setKey(userId + "_" + type);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment