public class CreatePrimaryQueryIndexOptions extends CommonOptions<CreatePrimaryQueryIndexOptions>
Modifier and Type | Class and Description |
---|---|
class |
CreatePrimaryQueryIndexOptions.Built |
CommonOptions.BuiltCommonOptions
Modifier and Type | Method and Description |
---|---|
CreatePrimaryQueryIndexOptions.Built |
build() |
static CreatePrimaryQueryIndexOptions |
createPrimaryQueryIndexOptions() |
CreatePrimaryQueryIndexOptions |
deferred(boolean deferred)
Set to
true to defer building of the index until
QueryIndexManager.buildDeferredIndexes(java.lang.String) is called. |
CreatePrimaryQueryIndexOptions |
ignoreIfExists(boolean ignore)
If a primary index already exists, an exception will be thrown unless this is set to true.
|
CreatePrimaryQueryIndexOptions |
indexName(String indexName)
Specifies the name of the primary index to create.
|
CreatePrimaryQueryIndexOptions |
numReplicas(int numReplicas)
Specifies the number of replicas of the index to create.
|
CreatePrimaryQueryIndexOptions |
with(String optionName,
Object optionValue)
Escape hatch for specifying extra options in the
WITH clause. |
clientContext, parentSpan, retryStrategy, self, timeout
public static CreatePrimaryQueryIndexOptions createPrimaryQueryIndexOptions()
public CreatePrimaryQueryIndexOptions indexName(String indexName)
"#primary"
.public CreatePrimaryQueryIndexOptions ignoreIfExists(boolean ignore)
public CreatePrimaryQueryIndexOptions numReplicas(int numReplicas)
public CreatePrimaryQueryIndexOptions deferred(boolean deferred)
true
to defer building of the index until
QueryIndexManager.buildDeferredIndexes(java.lang.String)
is called.
If you are creating multiple indexes on the same bucket, you may see improved performance by creating them in deferred mode and then building them all at once.
public CreatePrimaryQueryIndexOptions with(String optionName, Object optionValue)
WITH
clause.
Intended for options that are supported by Couchbase Server but not by this
version of the SDK.@Stability.Internal public CreatePrimaryQueryIndexOptions.Built build()
Copyright © 2021 Couchbase, Inc.. All rights reserved.