Class CassandraRowStream
- All Implemented Interfaces:
MutinyDelegate
,ReadStream<com.datastax.oss.driver.api.core.cql.Row>
,StreamBase
original
non Mutiny-ified interface using Vert.x codegen.-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionCassandraRowStream
(io.vertx.cassandra.CassandraRowStream delegate) CassandraRowStream
(Object delegate) -
Method Summary
Modifier and TypeMethodDescriptioncom.datastax.oss.driver.api.core.cql.ColumnDefinitions
endHandler
(Runnable handler) boolean
exceptionHandler
(Consumer<Throwable> handler) com.datastax.oss.driver.api.core.cql.ExecutionInfo
fetch
(long l) io.vertx.cassandra.CassandraRowStream
int
hashCode()
static CassandraRowStream
newInstance
(io.vertx.cassandra.CassandraRowStream arg) pause()
Pipe<com.datastax.oss.driver.api.core.cql.Row>
pipe()
io.smallrye.mutiny.Uni<Void>
pipeTo
(WriteStream<com.datastax.oss.driver.api.core.cql.Row> dst) Pipe thisReadStream
to theWriteStream
.pipeToAndAwait
(WriteStream<com.datastax.oss.driver.api.core.cql.Row> dst) Blocking variant ofReadStream.pipeTo(io.vertx.mutiny.core.streams.WriteStream)
.void
pipeToAndForget
(WriteStream<com.datastax.oss.driver.api.core.cql.Row> dst) Variant ofReadStream.pipeTo(io.vertx.mutiny.core.streams.WriteStream)
that ignores the result of the operation.resume()
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) -
CassandraRowStream
-
-
Method Details
-
getDelegate
public io.vertx.cassandra.CassandraRowStream getDelegate()- Specified by:
getDelegate
in interfaceMutinyDelegate
- Specified by:
getDelegate
in interfaceReadStream<com.datastax.oss.driver.api.core.cql.Row>
- Specified by:
getDelegate
in interfaceStreamBase
- Returns:
- the delegate used by this Mutiny object of generated type
-
toString
-
equals
-
hashCode
public int hashCode() -
pipe
- Specified by:
pipe
in interfaceReadStream<com.datastax.oss.driver.api.core.cql.Row>
- Returns:
- a pipe
-
exceptionHandler
- Specified by:
exceptionHandler
in interfaceReadStream<com.datastax.oss.driver.api.core.cql.Row>
- Specified by:
exceptionHandler
in interfaceStreamBase
- Parameters:
handler
- the exception handler- Returns:
-
pause
- Specified by:
pause
in interfaceReadStream<com.datastax.oss.driver.api.core.cql.Row>
- Returns:
- a reference to this, so the API can be used fluently
-
resume
- Specified by:
resume
in interfaceReadStream<com.datastax.oss.driver.api.core.cql.Row>
- Returns:
- a reference to this, so the API can be used fluently
-
endHandler
- Specified by:
endHandler
in interfaceReadStream<com.datastax.oss.driver.api.core.cql.Row>
- Returns:
-
fetch
- Specified by:
fetch
in interfaceReadStream<com.datastax.oss.driver.api.core.cql.Row>
- Returns:
- a reference to this, so the API can be used fluently
-
handler
- Specified by:
handler
in interfaceReadStream<com.datastax.oss.driver.api.core.cql.Row>
- Returns:
-
pipeTo
@CheckReturnValue public io.smallrye.mutiny.Uni<Void> pipeTo(WriteStream<com.datastax.oss.driver.api.core.cql.Row> dst) Description copied from interface:ReadStream
Pipe thisReadStream
to theWriteStream
.Elements emitted by this stream will be written to the write stream until this stream ends or fails.
Once this stream has ended or failed, the write stream will be ended and the
handler
will be called with the result.Unlike the bare Vert.x variant, this method returns a
Uni
. Don't forget to subscribe on it to trigger the operation.- Specified by:
pipeTo
in interfaceReadStream<com.datastax.oss.driver.api.core.cql.Row>
- Parameters:
dst
- the destination write stream- Returns:
- the
uni
firing the result of the operation when completed, or a failure if the operation failed.
-
pipeToAndAwait
Description copied from interface:ReadStream
Blocking variant ofReadStream.pipeTo(io.vertx.mutiny.core.streams.WriteStream)
.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).
- Specified by:
pipeToAndAwait
in interfaceReadStream<com.datastax.oss.driver.api.core.cql.Row>
- Parameters:
dst
- the destination write stream- Returns:
- the Void instance produced by the operation.
-
pipeToAndForget
Description copied from interface:ReadStream
Variant ofReadStream.pipeTo(io.vertx.mutiny.core.streams.WriteStream)
that ignores the result of the operation.This method subscribes on the result of
ReadStream.pipeTo(io.vertx.mutiny.core.streams.WriteStream)
, but discards the outcome (item or failure). This method is useful to trigger the asynchronous operation fromReadStream.pipeTo(io.vertx.mutiny.core.streams.WriteStream)
but you don't need to compose it with other operations.- Specified by:
pipeToAndForget
in interfaceReadStream<com.datastax.oss.driver.api.core.cql.Row>
- Parameters:
dst
- the destination write stream
-
executionInfo
public com.datastax.oss.driver.api.core.cql.ExecutionInfo executionInfo()- Returns:
-
columnDefinitions
public com.datastax.oss.driver.api.core.cql.ColumnDefinitions columnDefinitions()- Returns:
-
toMulti
@CheckReturnValue public io.smallrye.mutiny.Multi<com.datastax.oss.driver.api.core.cql.Row> toMulti()- Specified by:
toMulti
in interfaceReadStream<com.datastax.oss.driver.api.core.cql.Row>
-
toBlockingIterable
-
toBlockingStream
-
newInstance
-