Modifier and Type | Method and Description |
---|---|
List<Row> |
all()
Returns all the remaining rows in this ResultSet as a list.
|
ColumnDefinitions |
getColumnDefinitions()
Returns the columns returned in this ResultSet.
|
ExecutionInfo |
getExecutionInfo()
Returns information on the execution of this query.
|
boolean |
isExhausted()
Returns whether this ResultSet has more results.
|
Iterator<Row> |
iterator()
Returns an iterator over the rows contained in this ResultSet.
|
Row |
one()
Returns the the next result from this ResultSet.
|
String |
toString() |
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.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 © 2013. All Rights Reserved.