Return-Path: Delivered-To: apmail-cassandra-commits-archive@www.apache.org Received: (qmail 74788 invoked from network); 2 Aug 2010 10:51:02 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 2 Aug 2010 10:51:02 -0000 Received: (qmail 29149 invoked by uid 500); 2 Aug 2010 10:51:02 -0000 Delivered-To: apmail-cassandra-commits-archive@cassandra.apache.org Received: (qmail 29015 invoked by uid 500); 2 Aug 2010 10:50:59 -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 29007 invoked by uid 500); 2 Aug 2010 10:50:58 -0000 Delivered-To: apmail-incubator-cassandra-commits@incubator.apache.org Received: (qmail 29004 invoked by uid 99); 2 Aug 2010 10:50:57 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 02 Aug 2010 10:50:57 +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; Mon, 02 Aug 2010 10:50:57 +0000 Received: from eosnew.apache.org (localhost [127.0.0.1]) by eos.apache.org (Postfix) with ESMTP id 149A52D8; Mon, 2 Aug 2010 10:50:36 +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: Mon, 02 Aug 2010 10:50:35 -0000 Message-ID: <20100802105035.26297.73792@eosnew.apache.org> Subject: =?utf-8?q?=5BCassandra_Wiki=5D_Update_of_=22API=22_by_StaffanEricsson?= 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 StaffanEricsson. The comment on this change is: Add DCQUORUM to the consistency levels. http://wiki.apache.org/cassandra/API?action=3Ddiff&rev1=3D62&rev2=3D63 -------------------------------------------------- ||`ANY` ||(Requires 0.6) Ensure that the write has been written to at lea= st 1 node, including hinted recipients. || ||`ONE` ||Ensure that the write has been written to at least 1 node's com= mit log and memory table before responding to the client. || ||`QUORUM` ||Ensure that the write has been written to ` / 2 + 1` nodes before responding to the client. || + ||`DCQUORUM` ||As above but takes into account the rack aware placement s= trategy. See https://issues.apache.org/jira/browse/CASSANDRA-492 || ||`ALL` ||Ensure that the write is written to all `` n= odes before responding to the client. Any unresponsive nodes will fail the= operation. || = = @@ -44, +45 @@ ||`ANY` ||Not supported. You probably want ONE instead. || ||`ONE` ||Will return the record returned by the first node to respond. A= consistency check is always done in a background thread to fix any consist= ency issues when `ConsistencyLevel.ONE` is used. This means subsequent call= s will have correct data even if the initial read gets an older value. (Th= is is called `read repair`.) || ||`QUORUM` ||Will query all nodes and return the record with the most rec= ent timestamp once it has at least a majority of replicas reported. Again,= the remaining replicas will be checked in the background. || + ||`DCQUORUM` ||When using rack aware placement strategy reads are keept w= ithin a data center. See https://issues.apache.org/jira/browse/CASSANDRA-49= 2 || ||`ALL` ||Will query all nodes and return the record with the most recent= timestamp once all nodes have replied. Any unresponsive nodes will fail t= he operation. || = = @@ -194, +196 @@ = = = - = =3D=3D=3D CFDef, KSDef =3D=3D=3D '''''Requires Cassandra 0.7''''' = @@ -202, +203 @@ = =3D=3D=3D=3D CFDef =3D=3D=3D=3D ||'''Attribute''' ||'''Type''' ||'''Default''' ||'''Required''' ||'''Desc= ription''' || - ||`table`||`string`||None||Yes||Keyspace this CFDef belongs to|| + ||`table` ||`string` ||None ||Yes ||Keyspace this CFDef belongs to || - ||`name`||`string`||None||Yes||Name of column family. Must be unique to t= he keyspace|| + ||`name` ||`string` ||None ||Yes ||Name of column family. Must be unique = to the keyspace || - ||`column_type`||`string`||"Standard"||No||One of "Standard" or "Super"|| + ||`column_type` ||`string` ||"Standard" ||No ||One of "Standard" or "Supe= r" || - ||`comparator_type`||`string`||"BytesType"||No||Name of comparator used f= or column sorting|| + ||`comparator_type` ||`string` ||"BytesType" ||No ||Name of comparator us= ed for column sorting || - ||`subcomparator_type`||`string`||None||No||Name of comparator used for s= ubcolumns (when column_type=3D"Super" only)|| + ||`subcomparator_type` ||`string` ||None ||No ||Name of comparator used f= or subcolumns (when column_type=3D"Super" only) || - ||`comment`||`string`||None||No||Human-readable description of column fam= ily|| + ||`comment` ||`string` ||None ||No ||Human-readable description of column= family || - ||`row_cache_size`||`double`||0||No||number of rows to cache|| + ||`row_cache_size` ||`double` ||0 ||No ||number of rows to cache || - ||`preload_row_cache`||`boolean`||0 (False)||No||Set to true to automatic= ally load the row cache|| + ||`preload_row_cache` ||`boolean` ||0 (False) ||No ||Set to true to autom= atically load the row cache || - ||`key_cache_size`||`double`||200000||No||Number of keys to cache|| + ||`key_cache_size` ||`double` ||200000 ||No ||Number of keys to cache || + = = =3D=3D=3D=3D KSDef =3D=3D=3D=3D ||'''Attribute''' ||'''Type''' ||'''Default''' ||'''Required''' ||'''Desc= ription''' || - ||`name`||`string`||None||Yes||Name of keyspace|| + ||`name` ||`string` ||None ||Yes ||Name of keyspace || - ||`strategy_class`||`string`||None||Yes||Fully qualified class name of re= plication strategy|| + ||`strategy_class` ||`string` ||None ||Yes ||Fully qualified class name o= f replication strategy || - ||`replication_factor`||`integer`||None||Yes||Number of data replicas|| + ||`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|| + ||`cf_defs` ||`list` ||None ||Yes ||list of column family definiti= ons. Can be empty, but not null || - = - = = = =3D=3D Method calls =3D=3D