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.setAddOriginalContactsToReconnectionPlan(boolean enabled)
Whether the driver should use original contact points when reconnecting to a control node.
|
QueryOptions |
QueryOptions.setConsiderZeroTokenNodesValidPeers(boolean enabled)
Recently introduced in Scylla zero-token nodes have null value in "tokens" column in their
system.peers rows.
|
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.
|
QueryOptions |
QueryOptions.setSkipCQL4MetadataResolveMethod(QueryOptions.CQL4SkipMetadataResolveMethod method)
There is known problem in CQL 4.x when prepared statement invalidation could be voided: more info When it happens metadata
on client side does not match data and deserialization can go wrong in many ways To avoid
driver can disable skip metadata flag to make server respond with metadata on every query.
|
Modifier and Type | Method and Description |
---|---|
boolean |
StatementWrapper.isIdempotentWithDefault(QueryOptions queryOptions) |
Configuration.Builder |
Configuration.Builder.withQueryOptions(QueryOptions queryOptions)
Sets the query options for this cluster.
|
Cluster.Builder |
Cluster.Builder.withQueryOptions(QueryOptions options)
Sets the QueryOptions to use for the newly created Cluster.
|
Copyright © 2012–2025. All rights reserved.