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 ToddNine. The comment on this change is: Added index operations. http://wiki.apache.org/cassandra/API?action=diff&rev1=67&rev2=68 -------------------------------------------------- ||`replication_factor` ||`integer` ||None ||Yes ||Number of data replicas || ||`cf_defs` ||`list` ||None ||Yes ||list of column family definitions. Can be empty, but not null || + ''Requires Cassandra 0.7 beta 2'' + + ==== IndexExpression ==== + ||'''Attribute''' ||'''Type''' ||'''Default''' ||'''Required''' ||'''Description''' || + ||`column_name` || `binary` || None || Yes || The name of the column to perform the operand on || + ||`op`|| `IndexOperator` || None || Yes || The IndexOperator to apply|| + || `value` || `binary` || None || Yes || The value to use in the comparison|| + + ==== IndexClause ==== + ||'''Attribute''' ||'''Type''' ||'''Default''' ||'''Required''' ||'''Description''' || + ||`expressions` || `list` || None || Yes || The list of IndexExpressions to AND together. Semantics from the client work similar to boolean logical operand && or SQL 'AND' || + ||`start_key`|| `binary` || None || Yes || Start key range to begin searching on || + || `count` || `i32` || 100 || No || The maximum rows to return|| + == Method calls == === login === @@ -261, +275 @@ The method is not O(1). It takes all the columns from disk to calculate the answer. The only benefit of the method is that you do not need to pull all the columns over Thrift interface to count them. + === get_indexed_slices === + ''Requires Cassandra 0.7 beta 2'' + . ` list get_indexed_slices(ColumnParent column_parent, IndexClause index_clause, SlicePredicate column_predicate, ConsistencyLevel consistency_level)` + + Returns a list of key slices that meed the IndexClause critera. Note that index clause must contain at least a single EQ operation. The columns specified in the IndexExpressions will also need to be specified as indexed when the CF is created. + === get_range_slice === ''Deprecated in 0.6 - use `get_range_slices` instead''