#NEWLINE# def create_column_family( self , keyspace , name , column_validation_classes = None , **cf_kwargs ) : #NEWLINE# #INDENT# '\n        Creates a new column family in a given keyspace.  If a value is not\n        supplied for any of optional parameters, Cassandra will use a reasonable\n        default value.\n\n        `keyspace` should be the name of the keyspace the column family will\n        be created in. `name` gives the name of the column family.\n        ' #NEWLINE# self . _conn . set_keyspace ( keyspace ) #NEWLINE# cfdef = CfDef ( ) #NEWLINE# cfdef . keyspace = keyspace #NEWLINE# cfdef . name = name #NEWLINE# if cf_kwargs . pop ( 'super' , False ) : #NEWLINE# #INDENT# cf_kwargs . setdefault ( 'column_type' , 'Super' ) #NEWLINE# #UNINDENT# for ( k , v ) in cf_kwargs . iteritems ( ) : #NEWLINE# #INDENT# v = self . _convert_class_attrs ( k , v ) #NEWLINE# setattr ( cfdef , k , v ) #NEWLINE# #UNINDENT# if cf_kwargs : #NEWLINE# #INDENT# for ( colname , value_type ) in column_validation_classes . items ( ) : #NEWLINE# #INDENT# cfdef = self . _alter_column_cfdef ( cfdef , colname , value_type ) #NEWLINE# #UNINDENT# #UNINDENT# self . _system_add_column_family ( cfdef )