From commits-return-20345-apmail-cassandra-commits-archive=cassandra.apache.org@cassandra.apache.org Wed Oct 13 22:05:50 2010 Return-Path: Delivered-To: apmail-cassandra-commits-archive@www.apache.org Received: (qmail 86569 invoked from network); 13 Oct 2010 22:05:50 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 13 Oct 2010 22:05:50 -0000 Received: (qmail 89034 invoked by uid 500); 13 Oct 2010 22:05:50 -0000 Delivered-To: apmail-cassandra-commits-archive@cassandra.apache.org Received: (qmail 89015 invoked by uid 500); 13 Oct 2010 22:05:50 -0000 Mailing-List: contact commits-help@cassandra.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cassandra.apache.org Delivered-To: mailing list commits@cassandra.apache.org Received: (qmail 89007 invoked by uid 500); 13 Oct 2010 22:05:50 -0000 Delivered-To: apmail-incubator-cassandra-commits@incubator.apache.org Received: (qmail 89004 invoked by uid 99); 13 Oct 2010 22:05:50 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 13 Oct 2010 22:05:50 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.131] (HELO eos.apache.org) (140.211.11.131) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 13 Oct 2010 22:05:47 +0000 Received: from eosnew.apache.org (localhost [127.0.0.1]) by eos.apache.org (Postfix) with ESMTP id EFBAA82E; Wed, 13 Oct 2010 22:05:16 +0000 (UTC) MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable From: Apache Wiki To: Apache Wiki Date: Wed, 13 Oct 2010 22:05:16 -0000 Message-ID: <20101013220516.59088.53564@eosnew.apache.org> Subject: =?utf-8?q?=5BCassandra_Wiki=5D_Update_of_=22API=22_by_ToddNine?= X-Virus-Checked: Checked by ClamAV on apache.org 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=3Ddiff&rev1=3D67&rev2=3D68 -------------------------------------------------- ||`replication_factor` ||`integer` ||None ||Yes ||Number of data replicas= || ||`cf_defs` ||`list` ||None ||Yes ||list of column family definiti= ons. Can be empty, but not null || = + ''Requires Cassandra 0.7 beta 2'' + = + =3D=3D=3D=3D IndexExpression =3D=3D=3D=3D + ||'''Attribute''' ||'''Type''' ||'''Default''' ||'''Required''' ||'''Desc= ription''' || + ||`column_name` || `binary` || None || Yes || The name of the column to p= erform the operand on || + ||`op`|| `IndexOperator` || None || Yes || The IndexOperator to apply|| + || `value` || `binary` || None || Yes || The value to use in the comparis= on|| + = + =3D=3D=3D=3D IndexClause =3D=3D=3D=3D + ||'''Attribute''' ||'''Type''' ||'''Default''' ||'''Required''' ||'''Desc= ription''' || + ||`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 searc= hing on || + || `count` || `i32` || 100 || No || The maximum rows to return|| + = = =3D=3D Method calls =3D=3D =3D=3D=3D login =3D=3D=3D @@ -261, +275 @@ = The method is not O(1). It takes all the columns from disk to calculate t= he answer. The only benefit of the method is that you do not need to pull a= ll the columns over Thrift interface to count them. = + =3D=3D=3D get_indexed_slices =3D=3D=3D + ''Requires Cassandra 0.7 beta 2'' + . ` list get_indexed_slices(ColumnParent column_parent, Inde= xClause index_clause, SlicePredicate column_predicate, ConsistencyLevel con= sistency_level)` + = + Returns a list of key slices that meed the IndexClause critera. Note tha= t index clause must contain at least a single EQ operation. The columns sp= ecified in the IndexExpressions will also need to be specified as indexed w= hen the CF is created. + = =3D=3D=3D get_range_slice =3D=3D=3D ''Deprecated in 0.6 - use `get_range_slices` instead'' =20