com.couchbase.client.scala.transactions
TransactionQueryOptions
Companion object TransactionQueryOptions
case class TransactionQueryOptions(parameters: Option[QueryParameters] = None, clientContextId: Option[String] = None, pipelineBatch: Option[Int] = None, pipelineCap: Option[Int] = None, profile: Option[QueryProfile] = None, readonly: Option[Boolean] = None, scanCap: Option[Int] = None, scanConsistency: Option[QueryScanConsistency] = None, adhoc: Boolean = true, raw: Option[Map[String, Any]] = None, flexIndex: Boolean = false, deferredException: Option[RuntimeException] = None) extends Product with Serializable
Customize the execution of a N1QL query performed inside a transaction.
- Alphabetic
- By Inheritance
- TransactionQueryOptions
- Serializable
- Serializable
- Product
- Equals
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
- new TransactionQueryOptions(parameters: Option[QueryParameters] = None, clientContextId: Option[String] = None, pipelineBatch: Option[Int] = None, pipelineCap: Option[Int] = None, profile: Option[QueryProfile] = None, readonly: Option[Boolean] = None, scanCap: Option[Int] = None, scanConsistency: Option[QueryScanConsistency] = None, adhoc: Boolean = true, raw: Option[Map[String, Any]] = None, flexIndex: Boolean = false, deferredException: Option[RuntimeException] = None)
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
adhoc(adhoc: Boolean): TransactionQueryOptions
If true (the default), adhoc mode is enabled: queries are just run.
If true (the default), adhoc mode is enabled: queries are just run.
If false, adhoc mode is disabled and transparent prepared statement mode is enabled: queries are first prepared so they can be executed more efficiently in the future.
- returns
a copy of this with the change applied, for chaining.
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clientContextId(contextId: String): TransactionQueryOptions
Adds a client context ID to the request, that will be sent back in the response, allowing clients to meaningfully trace requests/responses when many are exchanged.
Adds a client context ID to the request, that will be sent back in the response, allowing clients to meaningfully trace requests/responses when many are exchanged.
- returns
a copy of this with the change applied, for chaining.
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native() @IntrinsicCandidate()
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
flexIndex(flexIndex: Boolean): TransactionQueryOptions
Tells the query engine to use a flex index (utilizing the search service).
Tells the query engine to use a flex index (utilizing the search service).
The default is false.
- returns
a copy of this with the change applied, for chaining.
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @IntrinsicCandidate()
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @IntrinsicCandidate()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @IntrinsicCandidate()
-
def
parameters(values: QueryParameters): TransactionQueryOptions
Provides named or positional parameters, for queries parameterised that way.
Provides named or positional parameters, for queries parameterised that way.
See QueryParameters for details.
- returns
a copy of this with the change applied, for chaining.
-
def
pipelineBatch(pipelineBatch: Int): TransactionQueryOptions
Advanced: Controls the number of items execution operators can batch for Fetch from the KV.
Advanced: Controls the number of items execution operators can batch for Fetch from the KV.
- pipelineBatch
the pipeline_batch param.
- returns
a copy of this with the change applied, for chaining.
-
def
pipelineCap(pipelineCap: Int): TransactionQueryOptions
Advanced: Maximum number of items each execution operator can buffer between various operators.
Advanced: Maximum number of items each execution operator can buffer between various operators.
- pipelineCap
the pipeline_cap param.
- returns
a copy of this with the change applied, for chaining.
-
def
profile(profile: QueryProfile): TransactionQueryOptions
Set the profiling information level for query execution
Set the profiling information level for query execution
This is an Enterprise Edition feature. On Community Edition the parameter will be accepted, but no profiling information returned.
- profile
the query profile level to be used
- returns
a copy of this with the change applied, for chaining.
-
def
raw(raw: Map[String, Any]): TransactionQueryOptions
Allows providing custom JSON key/value pairs for advanced usage.
Allows providing custom JSON key/value pairs for advanced usage.
If available, it is recommended to use the methods on this object to customize the query. This method should only be used if no such setter can be found (i.e. if an undocumented property should be set or you are using an older client and a new server-configuration property has been added to the cluster).
- returns
a copy of this with the change applied, for chaining.
-
def
readonly(readonly: Boolean): TransactionQueryOptions
If set to true, it will signal the query engine on the server that only non-data modifying requests are allowed.
If set to true, it will signal the query engine on the server that only non-data modifying requests are allowed. Note that this rule is enforced on the server and not the SDK side.
Controls whether a query can change a resulting record set.
If readonly is true, then the following statements are not allowed:
- CREATE INDEX
- DROP INDEX
- INSERT
- MERGE
- UPDATE
- UPSERT
- DELETE
- readonly
true if readonly should be forced, false is the default and will use the server side default.
- returns
a copy of this with the change applied, for chaining.
-
def
scanCap(scanCap: Int): TransactionQueryOptions
Advanced: Maximum buffered channel size between the indexer client and the query service for index scans.
Advanced: Maximum buffered channel size between the indexer client and the query service for index scans.
This parameter controls when to use scan backfill. Use 0 or a negative number to disable.
- scanCap
the scan_cap param, use 0 or negative number to disable.
- returns
a copy of this with the change applied, for chaining.
-
def
scanConsistency(scanConsistency: QueryScanConsistency): TransactionQueryOptions
Scan consistency for the query.
Scan consistency for the query.
The default inside a transaction is QueryScanConsistency.RequestPlus.
- scanConsistency
the index scan consistency to be used
- returns
a copy of this with the change applied, for chaining.
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
Deprecated Value Members
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] ) @Deprecated
- Deprecated