cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Apache Wiki <wikidi...@apache.org>
Subject [Cassandra Wiki] Update of "API" by StaffanEricsson
Date Mon, 02 Aug 2010 10:50:35 GMT
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=diff&rev1=62&rev2=63

--------------------------------------------------

  ||`ANY` ||(Requires 0.6) Ensure that the write has been written to at least 1 node, including
hinted recipients. ||
  ||`ONE` ||Ensure that the write has been written to at least 1 node's commit log and memory
table before responding to the client. ||
  ||`QUORUM` ||Ensure that the write has been written to `<ReplicationFactor> / 2 +
1` nodes before responding to the client. ||
+ ||`DCQUORUM` ||As above but takes into account the rack aware placement strategy. See https://issues.apache.org/jira/browse/CASSANDRA-492
||
  ||`ALL` ||Ensure that the write is written to all `<ReplicationFactor>` nodes 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 consistency issues when `ConsistencyLevel.ONE`
is used. This means subsequent calls will have correct data even if the initial read gets
an older value.  (This is called `read repair`.) ||
  ||`QUORUM` ||Will query all nodes and return the record with the most recent 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 within a data center.
See https://issues.apache.org/jira/browse/CASSANDRA-492 ||
  ||`ALL` ||Will query all nodes and return the record with the most recent timestamp once
all nodes have replied.  Any unresponsive nodes will fail the operation. ||
  
  
@@ -194, +196 @@

  
  
  
- 
  === CFDef, KSDef ===
  '''''Requires Cassandra 0.7'''''
  
@@ -202, +203 @@

  
  ==== CFDef ====
  ||'''Attribute''' ||'''Type''' ||'''Default''' ||'''Required''' ||'''Description''' ||
- ||`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 the 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 "Super" ||
- ||`comparator_type`||`string`||"BytesType"||No||Name of comparator used for column sorting||
+ ||`comparator_type` ||`string` ||"BytesType" ||No ||Name of comparator used for column sorting
||
- ||`subcomparator_type`||`string`||None||No||Name of comparator used for subcolumns (when
column_type="Super" only)||
+ ||`subcomparator_type` ||`string` ||None ||No ||Name of comparator used for subcolumns (when
column_type="Super" only) ||
- ||`comment`||`string`||None||No||Human-readable description of column family||
+ ||`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 automatically load the row
cache||
+ ||`preload_row_cache` ||`boolean` ||0 (False) ||No ||Set to true to automatically 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 ||
+ 
  
  ==== KSDef ====
  ||'''Attribute''' ||'''Type''' ||'''Default''' ||'''Required''' ||'''Description''' ||
- ||`name`||`string`||None||Yes||Name of keyspace||
+ ||`name` ||`string` ||None ||Yes ||Name of keyspace ||
- ||`strategy_class`||`string`||None||Yes||Fully qualified class name of replication strategy||
+ ||`strategy_class` ||`string` ||None ||Yes ||Fully qualified class name of replication strategy
||
- ||`replication_factor`||`integer`||None||Yes||Number of data replicas||
+ ||`replication_factor` ||`integer` ||None ||Yes ||Number of data replicas ||
- ||`cf_defs`||`list<CfDef>`||None||Yes||list of column family definitions. Can be empty,
but not null||
+ ||`cf_defs` ||`list<CfDef>` ||None ||Yes ||list of column family definitions. Can
be empty, but not null ||
- 
- 
  
  
  == Method calls ==

Mime
View raw message