Class CreateQueryIndexOptions
java.lang.Object
com.couchbase.client.java.CommonOptions<CreateQueryIndexOptions>
com.couchbase.client.java.manager.query.CreateQueryIndexOptions
public class CreateQueryIndexOptions extends CommonOptions<CreateQueryIndexOptions>
-
Nested Class Summary
Nested Classes Modifier and Type Class Description class
CreateQueryIndexOptions.Built
Nested classes/interfaces inherited from class com.couchbase.client.java.CommonOptions
CommonOptions.BuiltCommonOptions
-
Method Summary
Modifier and Type Method Description CreateQueryIndexOptions.Built
build()
static CreateQueryIndexOptions
createQueryIndexOptions()
CreateQueryIndexOptions
deferred(boolean deferred)
Set totrue
to defer building of the index untilQueryIndexManager.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 theWITH
clause.Methods inherited from class com.couchbase.client.java.CommonOptions
clientContext, parentSpan, retryStrategy, self, timeout
-
Method Details
-
createQueryIndexOptions
-
ignoreIfExists
If an index with the same name already exists, an exception will be thrown unless this is set to true. -
numReplicas
Specifies the number of replicas of the index to create. -
deferred
Set totrue
to defer building of the index untilQueryIndexManager.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.
-
with
Escape hatch for specifying extra options in theWITH
clause. Intended for options that are supported by Couchbase Server but not by this version of the SDK. -
build
-