Package | Description |
---|---|
com.couchbase.client.java.manager.query |
APIs related to N1QL query index management.
|
Modifier and Type | Method and Description |
---|---|
static CreatePrimaryQueryIndexOptions |
CreatePrimaryQueryIndexOptions.createPrimaryQueryIndexOptions() |
CreatePrimaryQueryIndexOptions |
CreatePrimaryQueryIndexOptions.deferred(boolean deferred)
Set to
true to defer building of the index until
QueryIndexManager.buildDeferredIndexes(java.lang.String) is called. |
CreatePrimaryQueryIndexOptions |
CreatePrimaryQueryIndexOptions.ignoreIfExists(boolean ignore)
If a primary index already exists, an exception will be thrown unless this is set to true.
|
CreatePrimaryQueryIndexOptions |
CreatePrimaryQueryIndexOptions.indexName(String indexName)
Specifies the name of the primary index to create.
|
CreatePrimaryQueryIndexOptions |
CreatePrimaryQueryIndexOptions.numReplicas(int numReplicas)
Specifies the number of replicas of the index to create.
|
CreatePrimaryQueryIndexOptions |
CreatePrimaryQueryIndexOptions.with(String optionName,
Object optionValue)
Escape hatch for specifying extra options in the
WITH clause. |
Modifier and Type | Method and Description |
---|---|
CompletableFuture<Void> |
AsyncQueryIndexManager.createPrimaryIndex(String bucketName,
CreatePrimaryQueryIndexOptions options) |
void |
QueryIndexManager.createPrimaryIndex(String bucketName,
CreatePrimaryQueryIndexOptions options) |
Mono<Void> |
ReactiveQueryIndexManager.createPrimaryIndex(String bucketName,
CreatePrimaryQueryIndexOptions options) |
Copyright © 2021 Couchbase, Inc.. All rights reserved.