|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.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. |
QueryTrace |
getQueryTrace()
The query trace if tracing was enabled on 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 QueryTrace getQueryTrace()
QueryTrace object for this query if tracing was
enable for this query, or null otherwise.public String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||