Class ResultSet
- All Implemented Interfaces:
MutinyDelegate
AsyncResultSet
, but adapted for Vert.x.
NOTE: This class has been automatically generated from the original
non Mutiny-ified interface using Vert.x codegen.-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionio.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>
Blocking variant ofall()
.void
Variant ofall()
that ignores the result of the operation.Iterable<com.datastax.oss.driver.api.core.cql.Row>
boolean
io.smallrye.mutiny.Uni<ResultSet>
LikefetchNextPage()
but with a direct callback.Blocking variant offetchNextPage()
.void
Variant offetchNextPage()
that ignores the result of the operation.com.datastax.oss.driver.api.core.cql.ColumnDefinitions
io.vertx.cassandra.ResultSet
com.datastax.oss.driver.api.core.cql.ExecutionInfo
int
hashCode()
boolean
static ResultSet
newInstance
(io.vertx.cassandra.ResultSet arg) com.datastax.oss.driver.api.core.cql.Row
one()
int
toString()
boolean
-
Field Details
-
__TYPE_ARG
-
-
Constructor Details
-
ResultSet
public ResultSet(io.vertx.cassandra.ResultSet delegate) -
ResultSet
-
-
Method Details
-
getDelegate
public io.vertx.cassandra.ResultSet getDelegate()- Specified by:
getDelegate
in interfaceMutinyDelegate
- Returns:
- the delegate used by this Mutiny object of generated type
-
toString
-
equals
-
hashCode
public int hashCode() -
remaining
public int remaining()- Returns:
-
hasMorePages
public boolean hasMorePages()- Returns:
-
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
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
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
- Returns:
-
one
public com.datastax.oss.driver.api.core.cql.Row one()- Returns:
-
newInstance
-