Click or drag to resize

QueryOptions Methods

The QueryOptions type exposes the following members.

Methods
  NameDescription
Public methodGetConsistencyLevel
The default consistency level used by queries.
Public methodGetDefaultIdempotence
Gets the default idempotence for all queries.
Public methodGetPageSize
The default page size used by queries.
Public methodGetSerialConsistencyLevel
The default serial consistency level used by queries.
Public methodIsPrepareOnAllHosts
Determines whether the driver should prepare statements on all hosts in the cluster.
Public methodIsReprepareOnUp
Determines whether the driver should re-prepare all cached prepared statements on a host when its marks that host back up.
Public methodSetConsistencyLevel
Sets the default consistency level to use for queries. The consistency level set through this method will be use for queries that don't explicitely have a consistency level.
Public methodSetDefaultIdempotence
Sets the default idempotence for all queries.
Public methodSetPageSize
Sets the default page size to use for SELECT queries. The page size set through this method will be use for queries that don't explicitely have a page size.
Public methodSetPrepareOnAllHosts
Sets whether the driver should prepare statements on all hosts in the cluster.

A statement is normally prepared in two steps: prepare the query on a single host in the cluster; if that succeeds, prepare on all other hosts.

This option controls whether step 2 is executed. It is enabled by default.

Public methodSetReprepareOnUp
Set whether the driver should re-prepare all cached prepared statements on a host when it marks it back up.

This option is enabled by default.

Public methodSetRetryOnTimeout
Determines if the client should retry when it didn't hear back from a host within ReadTimeoutMillis.

DEPRECATED: Instead, use OnRequestError(IStatement, Configuration, Exception, Int32) to control the behavior when OperationTimedOutException is obtained.

Public methodSetSerialConsistencyLevel
Sets the default serial consistency level to use for queries. The serial consistency level set through this method will be use for queries that don't explicitely have a serial consistency level.
Top
See Also