|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.datastax.driver.core.ResultSet
public class ResultSet
The result of a query. Note that this class is not thread-safe.
Method Summary | |
---|---|
List<Row> |
all()
Returns all the remaining rows in this ResultSet as a list. |
ColumnDefinitions |
getColumnDefinitions()
The columns returned in this ResultSet. |
ExecutionInfo |
getExecutionInfo()
Information on the execution of this query. |
boolean |
isExhausted()
Test whether this ResultSet has more results. |
Iterator<Row> |
iterator()
An iterator over the rows contained in this ResultSet. |
Row |
one()
Returns the the next result from this ResultSet. |
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Method Detail |
---|
public ColumnDefinitions getColumnDefinitions()
public boolean isExhausted()
public Row one()
public List<Row> all()
public Iterator<Row> iterator()
Iterator.next()
method is equivalent to calling one()
.
So this iterator will consume results from this ResultSet and after a
full iteration, the ResultSet will be empty.
The returned iterator does not support the Iterator.remove()
method.
iterator
in interface Iterable<Row>
public ExecutionInfo getExecutionInfo()
The returned object include basic information like the hosts queried, but also the Cassandra query trace if tracing was enabled for the query.
public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |