'Limits the number of results returned by Cassandra. Use *0* or *None* to disable.
*Note that CQL\'s default limit is 10,000, so all queries without a limit set explicitly will have an implicit limit of 10,000*
.. code-block:: python
# Fetch 100 users
for user in User.objects().limit(100):
print(user)
# Fetch all users
for user in User.objects().limit(None):
print(user)'

def limit(self, v):

    if (v is None):
        v = 0
    if (not isinstance(v, six.integer_types)):
        raise TypeError
    if (v == self._limit):
        return self
    if (v < 0):
        raise QueryException('Negative    limit    is    not    allowed')
    clone = copy.deepcopy(self)
    clone._limit = v
    return clone
