You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by Apache Wiki <wi...@apache.org> on 2009/11/08 02:24:10 UTC
[Cassandra Wiki] Update of "API" by kristopolous
Dear Wiki user,
You have subscribed to a wiki page or wiki category on "Cassandra Wiki" for change notification.
The "API" page has been changed by kristopolous.
The comment on this change is: disclosure of 100 results for get_slice along with a description of how to change it..
http://wiki.apache.org/cassandra/API?action=diff&rev1=22&rev2=23
--------------------------------------------------
=== get_slice ===
`list<ColumnOrSuperColumn> get_slice(keyspace, key, column_parent, predicate, consistency_level)`
- Get the group of columns contained by `column_parent` (either a !ColumnFamily name or a !ColumnFamily/!SuperColumn name pair) specified by the given `predicate`. If no matching values are found, an empty list is returned.
+ Get the group of columns contained by `column_parent` (either a !ColumnFamily name or a !ColumnFamily/!SuperColumn name pair) specified by the given `predicate`. If no matching values are found, an empty list is returned. Note that the number of columns returned is limited to 100 as of [[0.4|http://issues.apache.org/jira/browse/CASSANDRA-262]]. This can be modified without too much effort in Cassandra.thift by modifying the SliceRange struct. After doing so, rerun thrift by doing something like: ''thrift --gen (your language) -o /tmp cassandra.thrift'' and then replace your languages official files (use locate to find them) with the new ones in the /tmp directory.
=== multiget ===
`map<string,ColumnOrSuperColumn> multiget(keyspace, keys, column_path, consistency_level)`