private void onSetCompactionStrategy ( CfDef cfDef , Properties cfProperties , StringBuilder builder ) { String compactionStrategy = cfProperties . getProperty ( CassandraConstants . COMPACTION_STRATEGY ) ; if ( compactionStrategy != null ) { if ( builder != null ) { String strategy_class = CQLTranslator . getKeyword ( CassandraConstants . COMPACTION_STRATEGY ) ; builder . append ( strategy_class ) ; builder . append ( CQLTranslator . EQ_CLAUSE ) ; builder . append ( CQLTranslator . QUOTE_STR ) ; builder . append ( compactionStrategy ) ; builder . append ( CQLTranslator . QUOTE_STR ) ; builder . append ( CQLTranslator . AND_CLAUSE ) ; } else { cfDef . setCompaction_strategy ( compactionStrategy ) ; } } }
On set compaction strategy .