#NEWLINE# def batch( self , batch_obj ) : #NEWLINE# #INDENT# '\n        Set a batch object to run the query on.\n\n        Note: running a select query with a batch object will raise an exception\n        ' #NEWLINE# if ( ( batch_obj is not None ) and ( not isinstance ( batch_obj , BatchQuery ) ) ) : #NEWLINE# #INDENT# raise CQLEngineException ( 'batch_obj must be a BatchQuery instance or None' ) #NEWLINE# #UNINDENT# clone = copy . deepcopy ( clone ) #NEWLINE# clone . _batch = batch_obj #NEWLINE# return clone