Class CassandraRowStream
- All Implemented Interfaces:
MutinyDelegate,ReadStream<com.datastax.oss.driver.api.core.cql.Row>,StreamBase
ReadStream for Row consumption.
NOTE: This class has been automatically generated from the original non Mutiny-ified interface.
- Author:
- Pavel Drankou, Thomas Segismont
- See Also:
-
CassandraRowStream
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.vertx.mutiny.core.streams.ReadStream
ReadStream.ReadStreamImpl<T>Nested classes/interfaces inherited from interface io.vertx.mutiny.core.streams.StreamBase
StreamBase.StreamBaseImpl -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionCassandraRowStream(io.vertx.cassandra.CassandraRowStream delegate) Create a new instance ofCassandraRowStreamdelegating to the given (non-null) instance ofCassandraRowStream.CassandraRowStream(Object delegate) -
Method Summary
Modifier and TypeMethodDescriptioncom.datastax.oss.driver.api.core.cql.ColumnDefinitionsGet theColumnDefinitionsprovided by the backingResultSetfor this stream.endHandler(Runnable handler) Set an end handler.booleanexceptionHandler(Consumer<Throwable> handler) Set an exception handler on the read stream.com.datastax.oss.driver.api.core.cql.ExecutionInfoGet theExecutionInfoprovided by the backingResultSetfor this stream.fetch(long l) Fetch the specifiedamountof elements.io.vertx.cassandra.CassandraRowStreamGet the delegate instance.Set a data handler.inthashCode()static CassandraRowStreamnewInstance(io.vertx.cassandra.CassandraRowStream delegate) Creates a new instance of theCassandraRowStream.pause()Pause theReadStream, it sets the buffer infetchmode and clears the actual demand.Pipe<com.datastax.oss.driver.api.core.cql.Row>pipe()Pause this stream and return aPipeto transfer the elements of this stream to a destinationWriteStream.io.smallrye.mutiny.Uni<Void>pipeTo(WriteStream<com.datastax.oss.driver.api.core.cql.Row> dst) Unlike the bare Vert.x variant, this method returns aUni.voidpipeToAndAwait(WriteStream<com.datastax.oss.driver.api.core.cql.Row> dst) Unlike the bare Vert.x variant, this method returns aVoid.pipeToAndForget(WriteStream<com.datastax.oss.driver.api.core.cql.Row> dst) Unlike the bare Vert.x variant, this method ignores theVoidresult or any failure.resume()Resume reading, and sets the buffer inflowingmode.Iterable<com.datastax.oss.driver.api.core.cql.Row>Stream<com.datastax.oss.driver.api.core.cql.Row>io.smallrye.mutiny.Multi<com.datastax.oss.driver.api.core.cql.Row>toMulti()toString()
-
Field Details
-
__TYPE_ARG
-
-
Constructor Details
-
CassandraRowStream
public CassandraRowStream(io.vertx.cassandra.CassandraRowStream delegate) Create a new instance ofCassandraRowStreamdelegating to the given (non-null) instance ofCassandraRowStream. -
CassandraRowStream
-
-
Method Details
-
getDelegate
public io.vertx.cassandra.CassandraRowStream 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- Specified by:
getDelegatein interfaceReadStream<com.datastax.oss.driver.api.core.cql.Row>- Specified by:
getDelegatein interfaceStreamBase- Returns:
- the delegate instance
-
pipeTo
@CheckReturnValue public io.smallrye.mutiny.Uni<Void> pipeTo(WriteStream<com.datastax.oss.driver.api.core.cql.Row> dst) 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.
- Specified by:
pipeToin interfaceReadStream<com.datastax.oss.driver.api.core.cql.Row>- Parameters:
dst- the destination write stream- Returns:
- A
Unirepresenting the asynchronous result of this operation. - See Also:
-
io.vertx.cassandra.CassandraRowStream#pipeTo(WriteStream)
-
pipeToAndAwait
Unlike the bare Vert.x variant, this method returns a
Void. 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).- See Also:
-
io.vertx.cassandra.CassandraRowStream#pipeTo(WriteStream)
-
pipeToAndForget
public CassandraRowStream pipeToAndForget(WriteStream<com.datastax.oss.driver.api.core.cql.Row> dst) Unlike the bare Vert.x variant, this method ignores the
Voidresult or any failure.- Returns:
- The current instance to chain operations if needed.
- See Also:
-
io.vertx.cassandra.CassandraRowStream#pipeTo(WriteStream)
-
exceptionHandler
Description copied from interface:ReadStreamSet an exception handler on the read stream.- Specified by:
exceptionHandlerin interfaceReadStream<com.datastax.oss.driver.api.core.cql.Row>- Specified by:
exceptionHandlerin interfaceStreamBase- Parameters:
handler- the exception handler. Can benull.- Returns:
- a reference to this, so the API can be used fluently
-
handler
Description copied from interface:ReadStreamSet a data handler. As data is read, the handler will be called with the data.- Specified by:
handlerin interfaceReadStream<com.datastax.oss.driver.api.core.cql.Row>- Returns:
- a reference to this, so the API can be used fluently
-
pause
Description copied from interface:ReadStreamPause theReadStream, it sets the buffer infetchmode and clears the actual demand.While it's paused, no data will be sent to the data
handler.- Specified by:
pausein interfaceReadStream<com.datastax.oss.driver.api.core.cql.Row>- Returns:
- a reference to this, so the API can be used fluently
-
resume
Description copied from interface:ReadStreamResume reading, and sets the buffer inflowingmode. If theReadStreamhas been paused, reading will recommence on it.- Specified by:
resumein interfaceReadStream<com.datastax.oss.driver.api.core.cql.Row>- Returns:
- a reference to this, so the API can be used fluently
-
endHandler
Description copied from interface:ReadStreamSet an end handler. Once the stream has ended, and there is no more data to be read, this handler will be called.- Specified by:
endHandlerin interfaceReadStream<com.datastax.oss.driver.api.core.cql.Row>- Returns:
- a reference to this, so the API can be used fluently
-
fetch
Description copied from interface:ReadStreamFetch the specifiedamountof elements. If theReadStreamhas been paused, reading will recommence with the specifiedamountof items, otherwise the specifiedamountwill be added to the current stream demand.- Specified by:
fetchin interfaceReadStream<com.datastax.oss.driver.api.core.cql.Row>- Returns:
- a reference to this, so the API can be used fluently
-
executionInfo
public com.datastax.oss.driver.api.core.cql.ExecutionInfo executionInfo()Get theExecutionInfoprovided by the backingResultSetfor this stream. -
columnDefinitions
public com.datastax.oss.driver.api.core.cql.ColumnDefinitions columnDefinitions()Get theColumnDefinitionsprovided by the backingResultSetfor this stream. -
pipe
Pause this stream and return aPipeto transfer the elements of this stream to a destinationWriteStream. The stream will be resumed when the pipe will be wired to aWriteStream.- Specified by:
pipein interfaceReadStream<com.datastax.oss.driver.api.core.cql.Row>- Returns:
- a pipe
-
newInstance
Creates a new instance of theCassandraRowStream. -
hashCode
public int hashCode() -
equals
-
toString
-
toMulti
@CheckReturnValue public io.smallrye.mutiny.Multi<com.datastax.oss.driver.api.core.cql.Row> toMulti() -
toBlockingIterable
-
toBlockingStream
-