public interface ContinuousPagingSession extends Session
Session would have broken clients that implemented it. In practice, any session returned by the driver is
also a continuous paging session, and can be safely casted.
This will be merged in the parent interface in the next major version.Session.State| Modifier and Type | Method and Description |
|---|---|
ContinuousPagingResult |
executeContinuously(Statement statement,
ContinuousPagingOptions options)
Convenience method to execute a continuous query in a synchronous context.
|
ListenableFuture<AsyncContinuousPagingResult> |
executeContinuouslyAsync(Statement statement,
ContinuousPagingOptions options)
Executes the provided query with continuous paging.
|
close, closeAsync, execute, execute, execute, execute, executeAsync, executeAsync, executeAsync, executeAsync, getCluster, getLoggedKeyspace, getState, init, initAsync, isClosed, prepare, prepare, prepareAsync, prepareAsyncListenableFuture<AsyncContinuousPagingResult> executeContinuouslyAsync(Statement statement, ContinuousPagingOptions options)
ConsistencyLevel.ONE
queries by reading data from local disk and keeping iterators open across pages. This optimization is only
available if the coordinator is a replica and the consistency level is ONE. If this is not the case, the
coordinator will retrieve pages one by one from replicas. Note that when the optimization kicks in (range query
at ONE performed directly on a replica), the snitch is bypassed and the coordinator will always chose
itself as a replica. Therefore, other functionality such as probabilistic read repair and speculative retry is
also not available when contacting a replica at ONE.statement - the CQL query to execute (that can be any Statement).options - the query options (this can't be null).ContinuousPagingResult executeContinuously(Statement statement, ContinuousPagingOptions options)
executeContinuouslyAsync(Statement, ContinuousPagingOptions) internally, and takes
care of chaining the successive results into a convenient iterable, provided that you always access the result
from the same thread.statement - the CQL query to execute (that can be any Statement).options - the query options (this can't be null).Copyright © 2012–2017. All rights reserved.