public class RxSessionImpl extends Object implements RxSession
| Constructor and Description |
|---|
RxSessionImpl(com.datastax.driver.core.Session session) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
rx.Observable<com.datastax.driver.core.ResultSet> |
execute(com.datastax.driver.core.Statement statement)
Asynchronously execute a query and emit the corresponding
ResultSet on the
Schedulers.computation() scheduler. |
rx.Observable<com.datastax.driver.core.ResultSet> |
execute(com.datastax.driver.core.Statement statement,
rx.Scheduler scheduler)
Asynchronously execute a query and emit the corresponding
ResultSet on the specified scheduler. |
rx.Observable<com.datastax.driver.core.ResultSet> |
execute(String query)
Asynchronously execute a query and emit the corresponding
ResultSet on the
Schedulers.computation() scheduler. |
rx.Observable<com.datastax.driver.core.ResultSet> |
execute(String query,
Object... values)
Asynchronously execute a query and emit the corresponding
ResultSet on the
Schedulers.computation() scheduler, using the provided values. |
rx.Observable<com.datastax.driver.core.ResultSet> |
execute(String query,
rx.Scheduler scheduler)
Asynchronously execute a query and emit the corresponding
ResultSet on the specified scheduler. |
rx.Observable<com.datastax.driver.core.ResultSet> |
execute(String query,
rx.Scheduler scheduler,
Object... values)
Asynchronously execute a query and emit the corresponding
ResultSet on the specified scheduler,
using the proved values. |
rx.Observable<com.datastax.driver.core.Row> |
executeAndFetch(com.datastax.driver.core.Statement statement)
Asynchronously execute a query and fetch
Rows, emitted on the Schedulers.computation()
scheduler. |
rx.Observable<com.datastax.driver.core.Row> |
executeAndFetch(com.datastax.driver.core.Statement statement,
rx.Scheduler scheduler)
Asynchronously execute a query and fetch
Rows, emitted on the specified scheduler. |
rx.Observable<com.datastax.driver.core.Row> |
executeAndFetch(String query)
Asynchronously execute a query and fetch
Rows, emitted on the Schedulers.computation()
scheduler. |
rx.Observable<com.datastax.driver.core.Row> |
executeAndFetch(String query,
Object... values)
Asynchronously execute a query and fetch
Rows, emitted on the Schedulers.computation()
scheduler, using the provided values. |
rx.Observable<com.datastax.driver.core.Row> |
executeAndFetch(String query,
rx.Scheduler scheduler)
Asynchronously execute a query and fetch
Rows, emitted on the specified scheduler. |
rx.Observable<com.datastax.driver.core.Row> |
executeAndFetch(String query,
rx.Scheduler scheduler,
Object... values)
Asynchronously execute a query and fetch
Rows, emitted on the specified scheduler, using the
provided values. |
com.datastax.driver.core.Cluster |
getCluster() |
String |
getLoggedKeyspace() |
com.datastax.driver.core.Session |
getSession() |
com.datastax.driver.core.Session.State |
getState() |
RxSession |
init() |
boolean |
isClosed() |
rx.Observable<com.datastax.driver.core.PreparedStatement> |
prepare(com.datastax.driver.core.RegularStatement statement)
Asynchronously prepare a query and emit the corresponding
PreparedStatement on the
Schedulers.computation() scheduler. |
rx.Observable<com.datastax.driver.core.PreparedStatement> |
prepare(com.datastax.driver.core.RegularStatement statement,
rx.Scheduler scheduler)
Asynchronously prepare a query and emit the corresponding
PreparedStatement on the specified
scheduler. |
rx.Observable<com.datastax.driver.core.PreparedStatement> |
prepare(String query)
Asynchronously prepare a query and emit the corresponding
PreparedStatement on the
Schedulers.computation() scheduler. |
rx.Observable<com.datastax.driver.core.PreparedStatement> |
prepare(String query,
rx.Scheduler scheduler)
Asynchronously prepare a query and emit the corresponding
PreparedStatement on the specified
scheduler. |
public String getLoggedKeyspace()
getLoggedKeyspace in interface RxSessionSession.getLoggedKeyspace()public rx.Observable<com.datastax.driver.core.ResultSet> execute(String query)
RxSessionResultSet on the
Schedulers.computation() scheduler.public rx.Observable<com.datastax.driver.core.Row> executeAndFetch(String query)
RxSessionRows, emitted on the Schedulers.computation()
scheduler.executeAndFetch in interface RxSessionquery - the CQL query to executeObservable emitting Row itemspublic rx.Observable<com.datastax.driver.core.ResultSet> execute(String query, rx.Scheduler scheduler)
RxSessionResultSet on the specified scheduler.public rx.Observable<com.datastax.driver.core.Row> executeAndFetch(String query, rx.Scheduler scheduler)
RxSessionRows, emitted on the specified scheduler.executeAndFetch in interface RxSessionquery - the CQL query to executescheduler - the Scheduler on which the returned Observable operatesObservable emitting Row itemspublic rx.Observable<com.datastax.driver.core.ResultSet> execute(String query, Object... values)
RxSessionResultSet on the
Schedulers.computation() scheduler, using the provided values.public rx.Observable<com.datastax.driver.core.Row> executeAndFetch(String query, Object... values)
RxSessionRows, emitted on the Schedulers.computation()
scheduler, using the provided values.executeAndFetch in interface RxSessionquery - the CQL query to executevalues - values required for the execution of the queryObservable emitting Row itemspublic rx.Observable<com.datastax.driver.core.ResultSet> execute(String query, rx.Scheduler scheduler, Object... values)
RxSessionResultSet on the specified scheduler,
using the proved values.public rx.Observable<com.datastax.driver.core.Row> executeAndFetch(String query, rx.Scheduler scheduler, Object... values)
RxSessionRows, emitted on the specified scheduler, using the
provided values.executeAndFetch in interface RxSessionquery - the CQL query to executescheduler - the Scheduler on which the returned Observable operatesvalues - values required for the execution of the queryObservable emitting Row itemspublic rx.Observable<com.datastax.driver.core.ResultSet> execute(com.datastax.driver.core.Statement statement)
RxSessionResultSet on the
Schedulers.computation() scheduler.public rx.Observable<com.datastax.driver.core.Row> executeAndFetch(com.datastax.driver.core.Statement statement)
RxSessionRows, emitted on the Schedulers.computation()
scheduler.executeAndFetch in interface RxSessionstatement - the CQL query to execute, of any Statement typeObservable emitting Row itemspublic rx.Observable<com.datastax.driver.core.ResultSet> execute(com.datastax.driver.core.Statement statement,
rx.Scheduler scheduler)
RxSessionResultSet on the specified scheduler.public rx.Observable<com.datastax.driver.core.Row> executeAndFetch(com.datastax.driver.core.Statement statement,
rx.Scheduler scheduler)
RxSessionRows, emitted on the specified scheduler.executeAndFetch in interface RxSessionstatement - the CQL query to execute, of any Statement typescheduler - the Scheduler on which the returned Observable operatesObservable emitting Row itemspublic rx.Observable<com.datastax.driver.core.PreparedStatement> prepare(String query)
RxSessionPreparedStatement on the
Schedulers.computation() scheduler.public rx.Observable<com.datastax.driver.core.PreparedStatement> prepare(String query, rx.Scheduler scheduler)
RxSessionPreparedStatement on the specified
scheduler.public rx.Observable<com.datastax.driver.core.PreparedStatement> prepare(com.datastax.driver.core.RegularStatement statement)
RxSessionPreparedStatement on the
Schedulers.computation() scheduler.public rx.Observable<com.datastax.driver.core.PreparedStatement> prepare(com.datastax.driver.core.RegularStatement statement,
rx.Scheduler scheduler)
RxSessionPreparedStatement on the specified
scheduler.public void close()
public boolean isClosed()
public com.datastax.driver.core.Cluster getCluster()
getCluster in interface RxSessionSession.getCluster()public com.datastax.driver.core.Session getSession()
getSession in interface RxSessionSession objectCopyright © 2014–2016 Red Hat, Inc.. All rights reserved.