fix WITH compaction_strategy -> WITH compaction

patch by jbellis for CASSANDRA-4968
This commit is contained in:
Jonathan Ellis 2012-11-17 18:24:36 +01:00
parent b226ae5931
commit 6cdbb2d7b1
2 changed files with 2 additions and 2 deletions

View File

@ -227,7 +227,7 @@ CREATE TABLE timeline (
body text,
posted_by text,
PRIMARY KEY (userid, posted_month, posted_time)
) WITH compaction_strategy = { 'class' : 'LeveledCompactionStrategy' };
) WITH compaction = { 'class' : 'LeveledCompactionStrategy' };
p.
The @CREATE TABLE@ statement creates a new table. Each such table is a set of _rows_ (usually representing related entities) for which it defines a number of properties. A table is defined by a "name":#createTableName, it defines the <a href="#createTableColumn"><it>columns</it></a> composing rows of the table and have a number of "options":#createTableOptions. Note that the @CREATE COLUMNFAMILY@ syntax is supported as an alias for @CREATE TABLE@ (for historical reasons).

View File

@ -47,7 +47,7 @@ public class CFPropDefs extends PropertyDefinitions
public static final String KW_CACHING = "caching";
public static final String KW_BF_FP_CHANCE = "bloom_filter_fp_chance";
public static final String KW_COMPACTION = "compaction";
public static final String KW_COMPACTION = "compaction_strategy";
public static final String KW_COMPRESSION = "compression";
public static final String COMPACTION_STRATEGY_CLASS_KEY = "class";