public class CassandraRowStream extends Object implements ReadStream<com.datastax.oss.driver.api.core.cql.Row>
original
non RX-ified interface using Vert.x codegen.Modifier and Type | Field and Description |
---|---|
static io.vertx.lang.rx.TypeArg<CassandraRowStream> |
__TYPE_ARG |
Constructor and Description |
---|
CassandraRowStream(CassandraRowStream delegate) |
CassandraRowStream(Object delegate) |
Modifier and Type | Method and Description |
---|---|
com.datastax.oss.driver.api.core.cql.ColumnDefinitions |
columnDefinitions()
Get the provided by the backing
ResultSet for this stream. |
CassandraRowStream |
endHandler(Handler<Void> handler)
Set an end handler.
|
boolean |
equals(Object o) |
CassandraRowStream |
exceptionHandler(Handler<Throwable> handler)
Set an exception handler on the read stream.
|
com.datastax.oss.driver.api.core.cql.ExecutionInfo |
executionInfo()
Get the provided by the backing
ResultSet for this stream. |
CassandraRowStream |
fetch(long l)
Fetch the specified
amount of elements. |
CassandraRowStream |
getDelegate() |
CassandraRowStream |
handler(Handler<com.datastax.oss.driver.api.core.cql.Row> handler)
Set a data handler.
|
int |
hashCode() |
static CassandraRowStream |
newInstance(CassandraRowStream arg) |
CassandraRowStream |
pause()
Pause the
ReadStream , it sets the buffer in fetch mode and clears the actual demand. |
Pipe<com.datastax.oss.driver.api.core.cql.Row> |
pipe()
Pause this stream and return a to transfer the elements of this stream to a destination .
|
void |
pipeTo(WriteStream<com.datastax.oss.driver.api.core.cql.Row> dst)
Pipe this
ReadStream to the WriteStream . |
void |
pipeTo(WriteStream<com.datastax.oss.driver.api.core.cql.Row> dst,
Handler<AsyncResult<Void>> handler)
Pipe this
ReadStream to the WriteStream . |
CassandraRowStream |
resume()
Resume reading, and sets the buffer in
flowing mode. |
Single<Void> |
rxPipeTo(WriteStream<com.datastax.oss.driver.api.core.cql.Row> dst)
Pipe this
ReadStream to the WriteStream . |
Observable<com.datastax.oss.driver.api.core.cql.Row> |
toObservable() |
String |
toString() |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
newInstance, newInstance
newInstance
public static final io.vertx.lang.rx.TypeArg<CassandraRowStream> __TYPE_ARG
public CassandraRowStream(CassandraRowStream delegate)
public CassandraRowStream(Object delegate)
public CassandraRowStream getDelegate()
getDelegate
in interface ReadStream<com.datastax.oss.driver.api.core.cql.Row>
getDelegate
in interface StreamBase
public Observable<com.datastax.oss.driver.api.core.cql.Row> toObservable()
toObservable
in interface ReadStream<com.datastax.oss.driver.api.core.cql.Row>
public Pipe<com.datastax.oss.driver.api.core.cql.Row> pipe()
WriteStream
.pipe
in interface ReadStream<com.datastax.oss.driver.api.core.cql.Row>
public CassandraRowStream exceptionHandler(Handler<Throwable> handler)
ReadStream
exceptionHandler
in interface ReadStream<com.datastax.oss.driver.api.core.cql.Row>
exceptionHandler
in interface StreamBase
handler
- the exception handlerpublic CassandraRowStream pause()
ReadStream
ReadStream
, it sets the buffer in fetch
mode and clears the actual demand.
While it's paused, no data will be sent to the data handler
.
pause
in interface ReadStream<com.datastax.oss.driver.api.core.cql.Row>
public CassandraRowStream resume()
ReadStream
flowing
mode.
If the ReadStream
has been paused, reading will recommence on it.resume
in interface ReadStream<com.datastax.oss.driver.api.core.cql.Row>
public CassandraRowStream endHandler(Handler<Void> handler)
ReadStream
endHandler
in interface ReadStream<com.datastax.oss.driver.api.core.cql.Row>
public CassandraRowStream fetch(long l)
ReadStream
amount
of elements. If the ReadStream
has been paused, reading will
recommence with the specified amount
of items, otherwise the specified amount
will
be added to the current stream demand.fetch
in interface ReadStream<com.datastax.oss.driver.api.core.cql.Row>
public CassandraRowStream handler(Handler<com.datastax.oss.driver.api.core.cql.Row> handler)
ReadStream
handler
in interface ReadStream<com.datastax.oss.driver.api.core.cql.Row>
public void pipeTo(WriteStream<com.datastax.oss.driver.api.core.cql.Row> dst, Handler<AsyncResult<Void>> handler)
ReadStream
ReadStream
to the WriteStream
.
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.
pipeTo
in interface ReadStream<com.datastax.oss.driver.api.core.cql.Row>
dst
- the destination write streampublic void pipeTo(WriteStream<com.datastax.oss.driver.api.core.cql.Row> dst)
ReadStream
ReadStream
to the WriteStream
.
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.
pipeTo
in interface ReadStream<com.datastax.oss.driver.api.core.cql.Row>
dst
- the destination write streampublic Single<Void> rxPipeTo(WriteStream<com.datastax.oss.driver.api.core.cql.Row> dst)
ReadStream
ReadStream
to the WriteStream
.
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.
rxPipeTo
in interface ReadStream<com.datastax.oss.driver.api.core.cql.Row>
dst
- the destination write streampublic com.datastax.oss.driver.api.core.cql.ExecutionInfo executionInfo()
ResultSet
for this stream.public com.datastax.oss.driver.api.core.cql.ColumnDefinitions columnDefinitions()
ResultSet
for this stream.public static CassandraRowStream newInstance(CassandraRowStream arg)
Copyright © 2024 Eclipse. All rights reserved.