Class CoreQueryOptionsTransactions
java.lang.Object
com.couchbase.client.core.api.query.CoreQueryOptionsTransactions
- All Implemented Interfaces:
CoreQueryOptions
Transactions does some rather complex things with CoreQueryOptions. It needs to set its own options in addition to those
set by the user (or a higher layer). And sometimes wants to merge those options with the higher options, and sometimes
override the higher options entirely. Hence this rather complex ParameterPassthrough system.
If CoreQueryOptions could be easily cloned-with-changes, ala Scala case class's copy() method, that would be preferable.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic enum
static enum
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
adhoc()
boolean
boolean
metrics()
metrics
(boolean metrics) com.couchbase.client.core.deps.com.fasterxml.jackson.databind.node.ObjectNode
com.couchbase.client.core.deps.com.fasterxml.jackson.databind.node.ArrayNode
profile()
com.couchbase.client.core.deps.com.fasterxml.jackson.databind.JsonNode
raw()
boolean
readonly()
scanCap()
scanWait()
set
(CoreQueryOptionsTransactions.QueryOptionsParameter param, CoreQueryOptionsTransactions.ParameterPassthrough passthrough) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.couchbase.client.core.api.query.CoreQueryOptions
asTransaction
-
Constructor Details
-
CoreQueryOptionsTransactions
public CoreQueryOptionsTransactions() -
CoreQueryOptionsTransactions
-
-
Method Details
-
raw
public CoreQueryOptionsTransactions raw(String key, com.couchbase.client.core.deps.com.fasterxml.jackson.databind.JsonNode value) -
metrics
-
set
public CoreQueryOptionsTransactions set(CoreQueryOptionsTransactions.QueryOptionsParameter param, CoreQueryOptionsTransactions.ParameterPassthrough passthrough) -
put
public CoreQueryOptionsTransactions put(String key, com.couchbase.client.core.deps.com.fasterxml.jackson.databind.JsonNode value) -
adhoc
public boolean adhoc()- Specified by:
adhoc
in interfaceCoreQueryOptions
-
clientContextId
- Specified by:
clientContextId
in interfaceCoreQueryOptions
-
consistentWith
- Specified by:
consistentWith
in interfaceCoreQueryOptions
-
maxParallelism
- Specified by:
maxParallelism
in interfaceCoreQueryOptions
-
metrics
public boolean metrics()- Specified by:
metrics
in interfaceCoreQueryOptions
-
namedParameters
public com.couchbase.client.core.deps.com.fasterxml.jackson.databind.node.ObjectNode namedParameters()- Specified by:
namedParameters
in interfaceCoreQueryOptions
-
pipelineBatch
- Specified by:
pipelineBatch
in interfaceCoreQueryOptions
-
pipelineCap
- Specified by:
pipelineCap
in interfaceCoreQueryOptions
-
positionalParameters
public com.couchbase.client.core.deps.com.fasterxml.jackson.databind.node.ArrayNode positionalParameters()- Specified by:
positionalParameters
in interfaceCoreQueryOptions
-
profile
- Specified by:
profile
in interfaceCoreQueryOptions
-
raw
public com.couchbase.client.core.deps.com.fasterxml.jackson.databind.JsonNode raw()- Specified by:
raw
in interfaceCoreQueryOptions
-
readonly
public boolean readonly()- Specified by:
readonly
in interfaceCoreQueryOptions
-
scanWait
- Specified by:
scanWait
in interfaceCoreQueryOptions
-
scanCap
- Specified by:
scanCap
in interfaceCoreQueryOptions
-
scanConsistency
- Specified by:
scanConsistency
in interfaceCoreQueryOptions
-
flexIndex
public boolean flexIndex()- Specified by:
flexIndex
in interfaceCoreQueryOptions
-
preserveExpiry
- Specified by:
preserveExpiry
in interfaceCoreQueryOptions
-
useReplica
- Specified by:
useReplica
in interfaceCoreQueryOptions
-
asTransactionOptions
- Specified by:
asTransactionOptions
in interfaceCoreQueryOptions
-
commonOptions
- Specified by:
commonOptions
in interfaceCoreQueryOptions
-