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.
- Author:
- Pavel Drankou, Thomas Segismont
- See Also:
-
ResultSet
-
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()orone().List<com.datastax.oss.driver.api.core.cql.Row>The method should not be used concurrently with others likefetchNextPage()orone().The method should not be used concurrently with others likefetchNextPage()orone().Iterable<com.datastax.oss.driver.api.core.cql.Row>booleanio.smallrye.mutiny.Uni<ResultSet>Unlike the bare Vert.x variant, this method returns aUni.Unlike the bare Vert.x variant, this method returns aResultSet.Unlike the bare Vert.x variant, this method ignores theResultSetresult or any failure.com.datastax.oss.driver.api.core.cql.ColumnDefinitionsio.vertx.cassandra.ResultSetGet the delegate instance.com.datastax.oss.driver.api.core.cql.ExecutionInfointhashCode()booleanstatic ResultSetnewInstance(io.vertx.cassandra.ResultSet delegate) Creates a new instance of theResultSet.com.datastax.oss.driver.api.core.cql.Rowone()inttoString()boolean
-
Field Details
-
__TYPE_ARG
-
-
Constructor Details
-
ResultSet
public ResultSet(io.vertx.cassandra.ResultSet delegate) Create a new instance ofResultSetdelegating to the given (non-null) instance ofResultSet. -
ResultSet
-
-
Method Details
-
getDelegate
public io.vertx.cassandra.ResultSet getDelegate()Get the delegate instance.This method returns the instance on which this shim is delegating the calls. And so, give you access to the bare API.
- Specified by:
getDelegatein interfaceMutinyDelegate- Returns:
- the delegate instance
-
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()orone(). This may lead to unexpected result.Unlike the bare Vert.x variant, this method returns a
Uni. The uni emits the result of the operation as item. If the operation fails, the uni emits the failure.Don't forget to subscribe on it to trigger the operation.
- Returns:
- A
Unirepresenting the asynchronous result of this operation. - See Also:
-
ResultSet.all()
-
allAndAwait
The method should not be used concurrently with others likefetchNextPage()orone(). This may lead to unexpected result.Unlike the bare Vert.x variant, this method returns a
List<com.datastax.oss.driver.api.core.cql.Row>. This method awaits indefinitely 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 aRuntimeException).- Returns:
- The operation result
- See Also:
-
ResultSet.all()
-
allAndForget
The method should not be used concurrently with others likefetchNextPage()orone(). This may lead to unexpected result.Unlike the bare Vert.x variant, this method ignores the
List<com.datastax.oss.driver.api.core.cql.Row>result or any failure.- Returns:
- The current instance to chain operations if needed.
- See Also:
-
ResultSet.all()
-
fetchNextPage
@CheckReturnValue public io.smallrye.mutiny.Uni<ResultSet> fetchNextPage() throws IllegalStateExceptionUnlike the bare Vert.x variant, this method returns a
Uni. The uni emits the result of the operation as item. If the operation fails, the uni emits the failure.Don't forget to subscribe on it to trigger the operation.
- Returns:
- A
Unirepresenting the asynchronous result of this operation. - Throws:
IllegalStateException- See Also:
-
AsyncResultSet#wasApplied()ResultSet.fetchNextPage()
-
fetchNextPageAndAwait
Unlike the bare Vert.x variant, this method returns a
ResultSet. This method awaits indefinitely 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 aRuntimeException).- Returns:
- The operation result
- Throws:
IllegalStateException- See Also:
-
AsyncResultSet#wasApplied()ResultSet.fetchNextPage()
-
fetchNextPageAndForget
Unlike the bare Vert.x variant, this method ignores the
ResultSetresult or any failure.- Returns:
- The current instance to chain operations if needed.
- Throws:
IllegalStateException- See Also:
-
AsyncResultSet#wasApplied()ResultSet.fetchNextPage()
-
getColumnDefinitions
public com.datastax.oss.driver.api.core.cql.ColumnDefinitions getColumnDefinitions()- See Also:
-
AsyncResultSet#getColumnDefinitions()
-
getExecutionInfo
public com.datastax.oss.driver.api.core.cql.ExecutionInfo getExecutionInfo()- See Also:
-
AsyncResultSet#getExecutionInfo()
-
remaining
public int remaining()- See Also:
-
AsyncResultSet#remaining()
-
currentPage
- See Also:
-
AsyncResultSet#currentPage()
-
one
public com.datastax.oss.driver.api.core.cql.Row one()- See Also:
-
AsyncResultSet#one()
-
hasMorePages
public boolean hasMorePages()- See Also:
-
AsyncResultSet#hasMorePages()
-
wasApplied
public boolean wasApplied()- See Also:
-
AsyncResultSet#wasApplied()
-
newInstance
Creates a new instance of theResultSet. -
hashCode
public int hashCode() -
equals
-
toString
-