Class ResultSet
- java.lang.Object
-
- io.vertx.mutiny.cassandra.ResultSet
-
public class ResultSet extends Object
It is likeAsyncResultSet
, but adapted for Vert.x. NOTE: This class has been automatically generated from theoriginal
non Mutiny-ified interface using Vert.x codegen.
-
-
Field Summary
Fields Modifier and Type Field Description static TypeArg<ResultSet>
__TYPE_ARG
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description io.smallrye.mutiny.Uni<List<com.datastax.oss.driver.api.core.cql.Row>>
all()
The method should not be used concurrently with others likefetchNextPage()
or .List<com.datastax.oss.driver.api.core.cql.Row>
allAndAwait()
Blocking variant ofall()
.void
allAndForget()
Variant ofall()
that ignores the result of the operation.Iterable<com.datastax.oss.driver.api.core.cql.Row>
currentPage()
boolean
equals(Object o)
io.smallrye.mutiny.Uni<ResultSet>
fetchNextPage()
LikefetchNextPage()
but with a direct callback.ResultSet
fetchNextPageAndAwait()
Blocking variant offetchNextPage()
.void
fetchNextPageAndForget()
Variant offetchNextPage()
that ignores the result of the operation.com.datastax.oss.driver.api.core.cql.ColumnDefinitions
getColumnDefinitions()
io.vertx.cassandra.ResultSet
getDelegate()
com.datastax.oss.driver.api.core.cql.ExecutionInfo
getExecutionInfo()
int
hashCode()
boolean
hasMorePages()
static ResultSet
newInstance(io.vertx.cassandra.ResultSet arg)
com.datastax.oss.driver.api.core.cql.Row
one()
int
remaining()
String
toString()
boolean
wasApplied()
-
-
-
Constructor Detail
-
ResultSet
public ResultSet(io.vertx.cassandra.ResultSet delegate)
-
ResultSet
public ResultSet(Object delegate)
-
-
Method Detail
-
getDelegate
public io.vertx.cassandra.ResultSet getDelegate()
-
remaining
public int remaining()
- Returns:
-
hasMorePages
public boolean hasMorePages()
- Returns:
-
fetchNextPage
@CheckReturnValue public io.smallrye.mutiny.Uni<ResultSet> fetchNextPage()
LikefetchNextPage()
but with a direct callback.Unlike the bare Vert.x variant, this method returns a
Uni
. Don't forget to subscribe on it to trigger the operation.- Returns:
- the
uni
firing the result of the operation when completed, or a failure if the operation failed.
-
fetchNextPageAndAwait
public ResultSet fetchNextPageAndAwait()
Blocking variant offetchNextPage()
.This method waits for the completion of the underlying asynchronous operation. If the operation completes successfully, the result is returned, otherwise the failure is thrown (potentially wrapped in a RuntimeException).
- Returns:
- the ResultSet instance produced by the operation.
-
fetchNextPageAndForget
public void fetchNextPageAndForget()
Variant offetchNextPage()
that ignores the result of the operation.This method subscribes on the result of
fetchNextPage()
, but discards the outcome (item or failure). This method is useful to trigger the asynchronous operation fromfetchNextPage()
but you don't need to compose it with other operations.
-
wasApplied
public boolean wasApplied()
- Returns:
-
all
@CheckReturnValue public io.smallrye.mutiny.Uni<List<com.datastax.oss.driver.api.core.cql.Row>> all()
The method should not be used concurrently with others likefetchNextPage()
or . This may lead to unexpected result.Unlike the bare Vert.x variant, this method returns a
Uni
. Don't forget to subscribe on it to trigger the operation.- Returns:
- the
uni
firing the result of the operation when completed, or a failure if the operation failed.
-
allAndAwait
public List<com.datastax.oss.driver.api.core.cql.Row> allAndAwait()
Blocking variant ofall()
.This method waits for the completion of the underlying asynchronous operation. If the operation completes successfully, the result is returned, otherwise the failure is thrown (potentially wrapped in a RuntimeException).
- Returns:
- the List
instance produced by the operation.
-
allAndForget
public void allAndForget()
-
getColumnDefinitions
public com.datastax.oss.driver.api.core.cql.ColumnDefinitions getColumnDefinitions()
- Returns:
-
getExecutionInfo
public com.datastax.oss.driver.api.core.cql.ExecutionInfo getExecutionInfo()
- Returns:
-
currentPage
public Iterable<com.datastax.oss.driver.api.core.cql.Row> currentPage()
- Returns:
-
one
public com.datastax.oss.driver.api.core.cql.Row one()
- Returns:
-
newInstance
public static ResultSet newInstance(io.vertx.cassandra.ResultSet arg)
-
-