Modifier and Type | Method and Description |
---|---|
List<T> |
all()
Returns all the remaining results (entities) in this mapped result set
as a list.
|
ExecutionInfo |
getExecutionInfo()
Returns information on the execution of this query.
|
boolean |
isExhausted()
Test whether this mapped result set has more results.
|
Iterator<T> |
iterator()
An iterator over the entities of this mapped result set.
|
T |
one()
Returns the next result (i.e.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forEach, spliterator
public boolean isExhausted()
public T one()
public List<T> all()
public Iterator<T> iterator()
Iterator.next()
method is equivalent to calling one()
.
So this iterator will consume results and after a full iteration, the
mapped result set (and underlying ResultSet
) will be empty.
The returned iterator does not support the Iterator.remove()
method.public ExecutionInfo getExecutionInfo()
The returned object includes basic information such as the queried hosts, but also the Cassandra query trace if tracing was enabled for the query.
Copyright © 2012–2015. All rights reserved.