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 class
CoreQueryOptionsTransactions.ParameterPassthrough
static class
CoreQueryOptionsTransactions.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:
adhoc
in interfaceCoreQueryOptions
-
clientContextId
public String clientContextId()
- Specified by:
clientContextId
in interfaceCoreQueryOptions
-
consistentWith
public CoreMutationState consistentWith()
- Specified by:
consistentWith
in interfaceCoreQueryOptions
-
maxParallelism
public Integer 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
public Integer pipelineBatch()
- Specified by:
pipelineBatch
in interfaceCoreQueryOptions
-
pipelineCap
public Integer 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
public CoreQueryProfile 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
public Duration scanWait()
- Specified by:
scanWait
in interfaceCoreQueryOptions
-
scanCap
public Integer scanCap()
- Specified by:
scanCap
in interfaceCoreQueryOptions
-
scanConsistency
public CoreQueryScanConsistency scanConsistency()
- Specified by:
scanConsistency
in interfaceCoreQueryOptions
-
flexIndex
public boolean flexIndex()
- Specified by:
flexIndex
in interfaceCoreQueryOptions
-
preserveExpiry
public Boolean preserveExpiry()
- Specified by:
preserveExpiry
in interfaceCoreQueryOptions
-
asTransactionOptions
public CoreSingleQueryTransactionOptions asTransactionOptions()
- Specified by:
asTransactionOptions
in interfaceCoreQueryOptions
-
commonOptions
public CoreCommonOptions commonOptions()
- Specified by:
commonOptions
in interfaceCoreQueryOptions
-
-