def limit(self, v):
if not (v is None or isinstance(v, six.integer_types)):<EOL><INDENT>raise TypeError<EOL><DEDENT>if v == self._limit:<EOL><INDENT>return self<EOL><DEDENT>if v < <NUM_LIT:0>:<EOL><INDENT>raise QueryException("<STR_LIT>")<EOL><DEDENT>clone = copy.deepcopy(self)<EOL>clone._limit = v<EOL>return clone<EOL>
Sets the limit on the number of results returned
CQL has a default limit of 10,000