Class CoreQueryOptionsTransactions
- java.lang.Object
-
- com.couchbase.client.core.api.query.CoreQueryOptionsTransactions
-
- All Implemented Interfaces:
CoreQueryOptions
@Internal public class CoreQueryOptionsTransactions extends Object implements 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
Nested Classes Modifier and Type Class Description static classCoreQueryOptionsTransactions.ParameterPassthroughstatic classCoreQueryOptionsTransactions.QueryOptionsParameter
-
Constructor Summary
Constructors Constructor Description CoreQueryOptionsTransactions()CoreQueryOptionsTransactions(CoreQueryOptions original)
-
Method Summary
-
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 Detail
-
CoreQueryOptionsTransactions
public CoreQueryOptionsTransactions()
-
CoreQueryOptionsTransactions
public CoreQueryOptionsTransactions(@Nullable CoreQueryOptions original)
-
-
Method Detail
-
raw
public CoreQueryOptionsTransactions raw(String key, com.couchbase.client.core.deps.com.fasterxml.jackson.databind.JsonNode value)
-
metrics
public CoreQueryOptionsTransactions metrics(boolean 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:
adhocin interfaceCoreQueryOptions
-
clientContextId
public String clientContextId()
- Specified by:
clientContextIdin interfaceCoreQueryOptions
-
consistentWith
public CoreMutationState consistentWith()
- Specified by:
consistentWithin interfaceCoreQueryOptions
-
maxParallelism
public Integer maxParallelism()
- Specified by:
maxParallelismin interfaceCoreQueryOptions
-
metrics
public boolean metrics()
- Specified by:
metricsin interfaceCoreQueryOptions
-
namedParameters
public com.couchbase.client.core.deps.com.fasterxml.jackson.databind.node.ObjectNode namedParameters()
- Specified by:
namedParametersin interfaceCoreQueryOptions
-
pipelineBatch
public Integer pipelineBatch()
- Specified by:
pipelineBatchin interfaceCoreQueryOptions
-
pipelineCap
public Integer pipelineCap()
- Specified by:
pipelineCapin interfaceCoreQueryOptions
-
positionalParameters
public com.couchbase.client.core.deps.com.fasterxml.jackson.databind.node.ArrayNode positionalParameters()
- Specified by:
positionalParametersin interfaceCoreQueryOptions
-
profile
public CoreQueryProfile profile()
- Specified by:
profilein interfaceCoreQueryOptions
-
raw
public com.couchbase.client.core.deps.com.fasterxml.jackson.databind.JsonNode raw()
- Specified by:
rawin interfaceCoreQueryOptions
-
readonly
public boolean readonly()
- Specified by:
readonlyin interfaceCoreQueryOptions
-
scanWait
public Duration scanWait()
- Specified by:
scanWaitin interfaceCoreQueryOptions
-
scanCap
public Integer scanCap()
- Specified by:
scanCapin interfaceCoreQueryOptions
-
scanConsistency
public CoreQueryScanConsistency scanConsistency()
- Specified by:
scanConsistencyin interfaceCoreQueryOptions
-
flexIndex
public boolean flexIndex()
- Specified by:
flexIndexin interfaceCoreQueryOptions
-
preserveExpiry
public Boolean preserveExpiry()
- Specified by:
preserveExpiryin interfaceCoreQueryOptions
-
asTransactionOptions
public CoreSingleQueryTransactionOptions asTransactionOptions()
- Specified by:
asTransactionOptionsin interfaceCoreQueryOptions
-
commonOptions
public CoreCommonOptions commonOptions()
- Specified by:
commonOptionsin interfaceCoreQueryOptions
-
-