public interface ResultSet
ResultSet, but adapted for Vert.x.| Modifier and Type | Method and Description |
|---|---|
Future<List<com.datastax.driver.core.Row>> |
all()
Like
all(Handler) but returns a Future of the asynchronous result. |
ResultSet |
all(Handler<AsyncResult<List<com.datastax.driver.core.Row>>> handler)
The method should not be used concurrently with others like
several(int, Handler) or one(Handler). |
Future<Void> |
fetchMoreResults()
Like
fetchMoreResults(Handler) but returns a Future of the asynchronous result. |
ResultSet |
fetchMoreResults(Handler<AsyncResult<Void>> handler) |
int |
getAvailableWithoutFetching() |
com.datastax.driver.core.ColumnDefinitions |
getColumnDefinitions() |
boolean |
isExhausted() |
boolean |
isFullyFetched() |
Future<com.datastax.driver.core.Row> |
one()
Like
one(Handler) but returns a Future of the asynchronous result. |
ResultSet |
one(Handler<AsyncResult<com.datastax.driver.core.Row>> handler)
The method should not be used concurrently with others like
several(int, Handler) or all(Handler). |
Future<List<com.datastax.driver.core.Row>> |
several(int amount)
Like
several(int, Handler) but returns a Future of the asynchronous result. |
ResultSet |
several(int amount,
Handler<AsyncResult<List<com.datastax.driver.core.Row>>> handler)
Fetch a specific amount of rows and notify via a handler.
|
boolean |
wasApplied() |
boolean isExhausted()
PagingIterable.isExhausted()boolean isFullyFetched()
PagingIterable.isFullyFetched()int getAvailableWithoutFetching()
PagingIterable.getAvailableWithoutFetching()ResultSet fetchMoreResults(Handler<AsyncResult<Void>> handler)
handler - handler called when result is fetchedPagingIterable.fetchMoreResults()Future<Void> fetchMoreResults()
fetchMoreResults(Handler) but returns a Future of the asynchronous result.ResultSet one(Handler<AsyncResult<com.datastax.driver.core.Row>> handler)
several(int, Handler) or all(Handler).
This may lead to unexpected result.handler - handler called when one row is fetchedResultSet.one()Future<com.datastax.driver.core.Row> one()
one(Handler) but returns a Future of the asynchronous result.ResultSet several(int amount, Handler<AsyncResult<List<com.datastax.driver.core.Row>>> handler)
If remaining amount of rows in a result set is less than desired amount of rows to fetch,
the handler will be called with a successful result encompassing just the remaining rows.
The method should not be used concurrently with others like one(Handler) or all(Handler).
This may lead to unexpected result.
handler - the handleramount - the amountFuture<List<com.datastax.driver.core.Row>> several(int amount)
several(int, Handler) but returns a Future of the asynchronous result.ResultSet all(Handler<AsyncResult<List<com.datastax.driver.core.Row>>> handler)
several(int, Handler) or one(Handler).
This may lead to unexpected result.handler - handler called when all the rows is fetchedPagingIterable.all()Future<List<com.datastax.driver.core.Row>> all()
all(Handler) but returns a Future of the asynchronous result.com.datastax.driver.core.ColumnDefinitions getColumnDefinitions()
ResultSet.getColumnDefinitions()boolean wasApplied()
ResultSet.wasApplied()Copyright © 2019 Eclipse. All rights reserved.