}
}
catch (NumberFormatException nfe)
{
log.error("Max_Compaction_Threshold should be numeric type, Caused by: .", nfe);
throw new SchemaGenerationException(nfe);
}
}
String minCompactionThreshold = cfProperties.getProperty(CassandraConstants.MIN_COMPACTION_THRESHOLD);
if (minCompactionThreshold != null)
{
try
{
if (builder != null)
{
// Somehow these are not working for cassandra 1.1
// though they claim it should work.
// appendPropertyToBuilder(builder,
// minCompactionThreshold,
// CassandraConstants.MIN_COMPACTION_THRESHOLD);
}
else
{
cfDef.setMin_compaction_threshold(Integer.parseInt(minCompactionThreshold));
}
}
catch (NumberFormatException nfe)
{
log.error("Min_Compaction_Threshold should be numeric type, Caused by: . ", nfe);
throw new SchemaGenerationException(nfe);
}
}
}