| Package | Description | 
|---|---|
| com.datastax.driver.core | The main package for the DataStax Java driver for Cassandra. | 
| Modifier and Type | Method and Description | 
|---|---|
| QueryOptions | Configuration. getQueryOptions()Returns the queries configuration. | 
| QueryOptions | Configuration.Builder. getQueryOptions() | 
| QueryOptions | QueryOptions. setConsistencyLevel(ConsistencyLevel consistencyLevel)Sets the default consistency level to use for queries. | 
| QueryOptions | QueryOptions. setDefaultIdempotence(boolean defaultIdempotence)Sets the default idempotence for queries. | 
| QueryOptions | QueryOptions. setFetchSize(int fetchSize)Sets the default fetch size to use for SELECT queries. | 
| QueryOptions | QueryOptions. setMaxPendingRefreshNodeListRequests(int maxPendingRefreshNodeListRequests)Sets the maximum number of node list refresh requests that the control connection can
 accumulate before executing them. | 
| QueryOptions | QueryOptions. setMaxPendingRefreshNodeRequests(int maxPendingRefreshNodeRequests)Sets the maximum number of node refresh requests that the control connection can accumulate
 before executing them. | 
| QueryOptions | QueryOptions. setMaxPendingRefreshSchemaRequests(int maxPendingRefreshSchemaRequests)Sets the maximum number of schema refresh requests that the control connection can accumulate
 before executing them. | 
| QueryOptions | QueryOptions. setMetadataEnabled(boolean enabled)Toggle client-side token and schema metadata. | 
| QueryOptions | QueryOptions. setPrepareOnAllHosts(boolean prepareOnAllHosts)Set whether the driver should prepare statements on all hosts in the cluster. | 
| QueryOptions | QueryOptions. setRefreshNodeIntervalMillis(int refreshNodeIntervalMillis)Sets the default window size in milliseconds used to debounce node refresh requests. | 
| QueryOptions | QueryOptions. setRefreshNodeListIntervalMillis(int refreshNodeListIntervalMillis)Sets the default window size in milliseconds used to debounce node list refresh requests. | 
| QueryOptions | QueryOptions. setRefreshSchemaIntervalMillis(int refreshSchemaIntervalMillis)Sets the default window size in milliseconds used to debounce node list refresh requests. | 
| QueryOptions | QueryOptions. setReprepareOnUp(boolean reprepareOnUp)Set whether the driver should re-prepare all cached prepared statements on a host when it marks
 it back up. | 
| QueryOptions | QueryOptions. setSchemaQueriesPaged(boolean enabled)Toggle schema queries paging. | 
| QueryOptions | QueryOptions. setSerialConsistencyLevel(ConsistencyLevel serialConsistencyLevel)Sets the default serial consistency level to use for queries. | 
| Modifier and Type | Method and Description | 
|---|---|
| boolean | StatementWrapper. isIdempotentWithDefault(QueryOptions queryOptions) | 
| Cluster.Builder | Cluster.Builder. withQueryOptions(QueryOptions options)Sets the QueryOptions to use for the newly created Cluster. | 
| Configuration.Builder | Configuration.Builder. withQueryOptions(QueryOptions queryOptions)Sets the query options for this cluster. | 
Copyright © 2012–2025. All rights reserved.