public class CreateQueryIndexOptions extends CommonOptions<CreateQueryIndexOptions>
Modifier and Type | Class and Description |
---|---|
class |
CreateQueryIndexOptions.Built |
CommonOptions.BuiltCommonOptions
Modifier and Type | Method and Description |
---|---|
CreateQueryIndexOptions.Built |
build() |
static CreateQueryIndexOptions |
createQueryIndexOptions() |
CreateQueryIndexOptions |
deferred(boolean deferred)
Set to
true to defer building of the index until
QueryIndexManager.buildDeferredIndexes(java.lang.String) is called. |
CreateQueryIndexOptions |
ignoreIfExists(boolean ignore)
If an index with the same name already exists, an exception will be thrown unless this is set to true.
|
CreateQueryIndexOptions |
numReplicas(int numReplicas)
Specifies the number of replicas of the index to create.
|
CreateQueryIndexOptions |
with(String optionName,
Object optionValue)
Escape hatch for specifying extra options in the
WITH clause. |
clientContext, parentSpan, retryStrategy, self, timeout
public static CreateQueryIndexOptions createQueryIndexOptions()
public CreateQueryIndexOptions ignoreIfExists(boolean ignore)
public CreateQueryIndexOptions numReplicas(int numReplicas)
public CreateQueryIndexOptions 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 CreateQueryIndexOptions 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 CreateQueryIndexOptions.Built build()
Copyright © 2021 Couchbase, Inc.. All rights reserved.