src/java/org/apache/cassandra/config/CFMetaData.java
/** applies implicit defaults to cf definition. useful in updates */
applies implicit defaults to cf definition. useful in updates
applies implicit defaults to cf definition . useful in updates
public static void applyImplicitDefaults(org.apache.cassandra.thrift.CfDef cf_def) 
    {
        if (!cf_def.isSetComment())
            cf_def.setComment("");
        if (!cf_def.isSetReplicate_on_write())
            cf_def.setReplicate_on_write(CFMetaData.DEFAULT_REPLICATE_ON_WRITE);
        if (!cf_def.isSetMin_compaction_threshold())
            cf_def.setMin_compaction_threshold(CFMetaData.DEFAULT_MIN_COMPACTION_THRESHOLD);
        if (!cf_def.isSetMax_compaction_threshold())
            cf_def.setMax_compaction_threshold(CFMetaData.DEFAULT_MAX_COMPACTION_THRESHOLD);
        if (!cf_def.isSetMerge_shards_chance())
            cf_def.setMerge_shards_chance(CFMetaData.DEFAULT_MERGE_SHARDS_CHANCE);
        if (null == cf_def.compaction_strategy)
            cf_def.compaction_strategy = DEFAULT_COMPACTION_STRATEGY_CLASS;
        if (null == cf_def.compaction_strategy_options)
            cf_def.compaction_strategy_options = Collections.emptyMap();
    }
public static void applyImplicitDefaults ( org . apache . cassandra . thrift . CfDef cf_def ) { if ( ! cf_def . isSetComment ( ) ) cf_def . setComment ( "" ) ; if ( ! cf_def . isSetReplicate_on_write ( ) ) cf_def . setReplicate_on_write ( CFMetaData . DEFAULT_REPLICATE_ON_WRITE ) ; if ( ! cf_def . isSetMin_compaction_threshold ( ) ) cf_def . setMin_compaction_threshold ( CFMetaData . DEFAULT_MIN_COMPACTION_THRESHOLD ) ; if ( ! cf_def . isSetMax_compaction_threshold ( ) ) cf_def . setMax_compaction_threshold ( CFMetaData . DEFAULT_MAX_COMPACTION_THRESHOLD ) ; if ( ! cf_def . isSetMerge_shards_chance ( ) ) cf_def . setMerge_shards_chance ( CFMetaData . DEFAULT_MERGE_SHARDS_CHANCE ) ; if ( null == cf_def . compaction_strategy ) cf_def . compaction_strategy = DEFAULT_COMPACTION_STRATEGY_CLASS ; if ( null == cf_def . compaction_strategy_options ) cf_def . compaction_strategy_options = Collections . emptyMap ( ) ; }
applies implicit defaults to cf definition.
applies implicit defaults to cf definition .