public class QueryOptions extends Object
QueryOptions allow tuning of various query options on a per-request
level. Only options that are set are applied to queries.| Modifier and Type | Class and Description |
|---|---|
static class |
QueryOptions.QueryOptionsBuilder
Builder for
QueryOptions. |
| Modifier | Constructor and Description |
|---|---|
|
QueryOptions(com.datastax.driver.core.ConsistencyLevel consistencyLevel,
com.datastax.driver.core.policies.RetryPolicy retryPolicy)
Deprecated.
since 2.0, use
builder(). |
protected |
QueryOptions(com.datastax.driver.core.ConsistencyLevel consistencyLevel,
com.datastax.driver.core.policies.RetryPolicy retryPolicy,
Boolean tracing,
Integer fetchSize,
Duration readTimeout) |
| Modifier and Type | Method and Description |
|---|---|
static QueryOptions.QueryOptionsBuilder |
builder()
Create a new
QueryOptions.QueryOptionsBuilder. |
protected boolean |
canEqual(Object other) |
static QueryOptions |
empty()
Create default
QueryOptions. |
boolean |
equals(Object o) |
protected com.datastax.driver.core.ConsistencyLevel |
getConsistencyLevel() |
protected Integer |
getFetchSize() |
protected Duration |
getReadTimeout() |
protected com.datastax.driver.core.policies.RetryPolicy |
getRetryPolicy() |
protected Boolean |
getTracing() |
int |
hashCode() |
QueryOptions.QueryOptionsBuilder |
mutate()
Create a new
QueryOptions.QueryOptionsBuilder to mutate properties of this QueryOptions. |
protected QueryOptions(@Nullable com.datastax.driver.core.ConsistencyLevel consistencyLevel, @Nullable com.datastax.driver.core.policies.RetryPolicy retryPolicy, @Nullable Boolean tracing, @Nullable Integer fetchSize, Duration readTimeout)
@Deprecated public QueryOptions(@Nullable com.datastax.driver.core.ConsistencyLevel consistencyLevel, @Nullable com.datastax.driver.core.policies.RetryPolicy retryPolicy)
builder().consistencyLevel - the consistency level, may be null.retryPolicy - the retry policy, may be null.public static QueryOptions.QueryOptionsBuilder builder()
QueryOptions.QueryOptionsBuilder.QueryOptions.QueryOptionsBuilder.public static QueryOptions empty()
QueryOptions.QueryOptions.public QueryOptions.QueryOptionsBuilder mutate()
QueryOptions.QueryOptionsBuilder to mutate properties of this QueryOptions.QueryOptions.QueryOptionsBuilder initialized with this QueryOptions.@Nullable protected com.datastax.driver.core.ConsistencyLevel getConsistencyLevel()
ConsistencyLevel@Nullable protected Integer getFetchSize()
protected Duration getReadTimeout()
@Nullable protected com.datastax.driver.core.policies.RetryPolicy getRetryPolicy()
RetryPolicy@Nullable protected Boolean getTracing()
@Generated(value="lombok") public boolean equals(Object o)
@Generated(value="lombok") protected boolean canEqual(Object other)
@Generated(value="lombok") public int hashCode()
Copyright © 2011–2018 Pivotal Software, Inc.. All rights reserved.