Package | Description |
---|---|
com.couchbase.client.java.manager.query |
APIs related to N1QL query index management.
|
Modifier and Type | Method and Description |
---|---|
CreatePrimaryQueryIndexOptions |
CreatePrimaryQueryIndexOptions.collectionName(String collectionName)
Deprecated.
`collection.queryIndexes()` should now be used for collection-related query index operations.
|
static CreatePrimaryQueryIndexOptions |
CreatePrimaryQueryIndexOptions.createPrimaryQueryIndexOptions()
Creates a new instance with default values.
|
CreatePrimaryQueryIndexOptions |
CreatePrimaryQueryIndexOptions.deferred(boolean deferred)
If set to true will defer building of this index (false by default).
|
CreatePrimaryQueryIndexOptions |
CreatePrimaryQueryIndexOptions.ignoreIfExists(boolean ignoreIfExists)
Set to true if no exception should be thrown if the primary index already exists (false by default).
|
CreatePrimaryQueryIndexOptions |
CreatePrimaryQueryIndexOptions.indexName(String indexName)
The custom name of the primary index.
|
CreatePrimaryQueryIndexOptions |
CreatePrimaryQueryIndexOptions.numReplicas(int numReplicas)
Configures the number of index replicas.
|
CreatePrimaryQueryIndexOptions |
CreatePrimaryQueryIndexOptions.scopeName(String scopeName)
Deprecated.
`collection.queryIndexes()` should now be used for collection-related query index operations.
|
CreatePrimaryQueryIndexOptions |
CreatePrimaryQueryIndexOptions.with(String optionName,
Object optionValue)
Allows passing in custom options into the N1QL WITH clause for index creation.
|
Modifier and Type | Method and Description |
---|---|
Mono<Void> |
ReactiveCollectionQueryIndexManager.createPrimaryIndex(CreatePrimaryQueryIndexOptions options)
Creates a primary query index with custom options, on this collection.
|
CompletableFuture<Void> |
AsyncCollectionQueryIndexManager.createPrimaryIndex(CreatePrimaryQueryIndexOptions options)
Creates a primary query index with custom options, on this collection.
|
void |
CollectionQueryIndexManager.createPrimaryIndex(CreatePrimaryQueryIndexOptions options)
Creates a primary query index with custom options, on this collection.
|
void |
QueryIndexManager.createPrimaryIndex(String bucketName,
CreatePrimaryQueryIndexOptions options)
Creates a primary query index with custom options.
|
Mono<Void> |
ReactiveQueryIndexManager.createPrimaryIndex(String bucketName,
CreatePrimaryQueryIndexOptions options)
Creates a primary query index with custom options.
|
CompletableFuture<Void> |
AsyncQueryIndexManager.createPrimaryIndex(String bucketName,
CreatePrimaryQueryIndexOptions options)
Creates a primary query index with custom options.
|
Copyright © 2024 Couchbase, Inc.. All rights reserved.