Class CassandraRowStream
- java.lang.Object
-
- io.vertx.mutiny.cassandra.CassandraRowStream
-
- All Implemented Interfaces:
ReadStream<com.datastax.oss.driver.api.core.cql.Row>,StreamBase
public class CassandraRowStream extends Object implements ReadStream<com.datastax.oss.driver.api.core.cql.Row>
A for consumption. NOTE: This class has been automatically generated from theoriginalnon Mutiny-ified interface using Vert.x codegen.
-
-
Field Summary
Fields Modifier and Type Field Description static TypeArg<CassandraRowStream>__TYPE_ARG
-
Constructor Summary
Constructors Constructor Description CassandraRowStream(io.vertx.cassandra.CassandraRowStream delegate)CassandraRowStream(Object delegate)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description com.datastax.oss.driver.api.core.cql.ColumnDefinitionscolumnDefinitions()CassandraRowStreamendHandler(Runnable handler)booleanequals(Object o)CassandraRowStreamexceptionHandler(Consumer<Throwable> handler)com.datastax.oss.driver.api.core.cql.ExecutionInfoexecutionInfo()CassandraRowStreamfetch(long l)io.vertx.cassandra.CassandraRowStreamgetDelegate()CassandraRowStreamhandler(Consumer<com.datastax.oss.driver.api.core.cql.Row> handler)inthashCode()static CassandraRowStreamnewInstance(io.vertx.cassandra.CassandraRowStream arg)CassandraRowStreampause()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 thisReadStreamto theWriteStream.VoidpipeToAndAwait(WriteStream<com.datastax.oss.driver.api.core.cql.Row> dst)Blocking variant ofio.vertx.mutiny.core.streams.ReadStream#pipeTo(io.vertx.mutiny.core.streams.WriteStream.) voidpipeToAndForget(WriteStream<com.datastax.oss.driver.api.core.cql.Row> dst)Variant ofio.vertx.mutiny.core.streams.ReadStream#pipeTo(io.vertx.mutiny.core.streams.WriteStreamthat ignores the result of the operation.) CassandraRowStreamresume()Iterable<com.datastax.oss.driver.api.core.cql.Row>toBlockingIterable()Stream<com.datastax.oss.driver.api.core.cql.Row>toBlockingStream()io.smallrye.mutiny.Multi<com.datastax.oss.driver.api.core.cql.Row>toMulti()StringtoString()
-
-
-
Field Detail
-
__TYPE_ARG
public static final TypeArg<CassandraRowStream> __TYPE_ARG
-
-
Constructor Detail
-
CassandraRowStream
public CassandraRowStream(io.vertx.cassandra.CassandraRowStream delegate)
-
CassandraRowStream
public CassandraRowStream(Object delegate)
-
-
Method Detail
-
getDelegate
public io.vertx.cassandra.CassandraRowStream getDelegate()
- Specified by:
getDelegatein interfaceReadStream<com.datastax.oss.driver.api.core.cql.Row>- Specified by:
getDelegatein interfaceStreamBase
-
pipe
public Pipe<com.datastax.oss.driver.api.core.cql.Row> pipe()
- Specified by:
pipein interfaceReadStream<com.datastax.oss.driver.api.core.cql.Row>- Returns:
- a pipe
-
exceptionHandler
public CassandraRowStream exceptionHandler(Consumer<Throwable> handler)
- Specified by:
exceptionHandlerin interfaceReadStream<com.datastax.oss.driver.api.core.cql.Row>- Specified by:
exceptionHandlerin interfaceStreamBase- Parameters:
handler- the exception handler- Returns:
-
pause
public CassandraRowStream pause()
- 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
public CassandraRowStream resume()
- 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
public CassandraRowStream endHandler(Runnable handler)
- Specified by:
endHandlerin interfaceReadStream<com.datastax.oss.driver.api.core.cql.Row>- Returns:
-
fetch
public CassandraRowStream fetch(long l)
- Specified by:
fetchin interfaceReadStream<com.datastax.oss.driver.api.core.cql.Row>- Returns:
- a reference to this, so the API can be used fluently
-
handler
public CassandraRowStream handler(Consumer<com.datastax.oss.driver.api.core.cql.Row> handler)
- Specified by:
handlerin 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:ReadStreamPipe thisReadStreamto 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
handlerwill 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:
pipeToin interfaceReadStream<com.datastax.oss.driver.api.core.cql.Row>- Parameters:
dst- the destination write stream- Returns:
- the
unifiring the result of the operation when completed, or a failure if the operation failed.
-
pipeToAndAwait
public Void pipeToAndAwait(WriteStream<com.datastax.oss.driver.api.core.cql.Row> dst)
Description copied from interface:ReadStreamBlocking variant ofio.vertx.mutiny.core.streams.ReadStream#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:
pipeToAndAwaitin interfaceReadStream<com.datastax.oss.driver.api.core.cql.Row>- Parameters:
dst- the destination write stream- Returns:
- the Void instance produced by the operation.
-
pipeToAndForget
public void pipeToAndForget(WriteStream<com.datastax.oss.driver.api.core.cql.Row> dst)
Description copied from interface:ReadStreamVariant ofio.vertx.mutiny.core.streams.ReadStream#pipeTo(io.vertx.mutiny.core.streams.WriteStreamthat ignores the result of the operation.) This method subscribes on the result of
io.vertx.mutiny.core.streams.ReadStream#pipeTo(io.vertx.mutiny.core.streams.WriteStream, but discards the outcome (item or failure). This method is useful to trigger the asynchronous operation from) io.vertx.mutiny.core.streams.ReadStream#pipeTo(io.vertx.mutiny.core.streams.WriteStreambut you don't need to compose it with other operations.) - Specified by:
pipeToAndForgetin 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:
toMultiin interfaceReadStream<com.datastax.oss.driver.api.core.cql.Row>
-
toBlockingIterable
public Iterable<com.datastax.oss.driver.api.core.cql.Row> toBlockingIterable()
-
toBlockingStream
public Stream<com.datastax.oss.driver.api.core.cql.Row> toBlockingStream()
-
newInstance
public static CassandraRowStream newInstance(io.vertx.cassandra.CassandraRowStream arg)
-
-