cfNameToCassandra.put(realCfLower, info);
}
private ColumnFamilyDefinition setColumnNameCompareType(DboTableMeta cf,
StorageTypeEnum type, ColumnFamilyDefinition def2) {
ColumnFamilyDefinition def = def2;
if(type == null) {
StorageTypeEnum t = cf.getNameStorageType();
if(t == StorageTypeEnum.STRING)
def = def.setComparatorType("UTF8Type");
else if(t == StorageTypeEnum.DECIMAL)
def = def.setComparatorType("DecimalType");
else if(t == StorageTypeEnum.INTEGER)
def = def.setComparatorType("IntegerType");
else
throw new UnsupportedOperationException("type="+type+" is not supported at this time");
} else if(type == StorageTypeEnum.STRING) {
def = def.setComparatorType("CompositeType(UTF8Type, BytesType)");
} else if(type == StorageTypeEnum.INTEGER) {
def = def.setComparatorType("CompositeType(IntegerType, BytesType)");
} else if(type == StorageTypeEnum.DECIMAL) {
def = def.setComparatorType("CompositeType(DecimalType, BytesType)");
}
else
throw new UnsupportedOperationException("Not supported yet, we need a BigDecimal comparator type here for sure");
return def;
}