private void onSetRepairChance ( CfDef cfDef , Properties cfProperties , StringBuilder builder ) { String readRepairChance = cfProperties . getProperty ( CassandraConstants . READ_REPAIR_CHANCE ) ; if ( readRepairChance != null ) { try { if ( builder != null ) { appendPropertyToBuilder ( builder , readRepairChance , CassandraConstants . READ_REPAIR_CHANCE ) ; } else { cfDef . setRead_repair_chance ( Double . parseDouble ( readRepairChance ) ) ; } } catch ( NumberFormatException nfe ) { log . error ( "READ_REPAIR_CHANCE should be double type, Caused by: ." , nfe ) ; throw new SchemaGenerationException ( nfe ) ; } } }
On set repair chance .