Package | Description |
---|---|
com.couchbase.client.java.manager.query |
APIs related to N1QL query index management.
|
Modifier and Type | Method and Description |
---|---|
CreateQueryIndexOptions |
CreateQueryIndexOptions.collectionName(String collectionName)
Deprecated.
`collection.queryIndexes()` should now be used for collection-related query index operations.
|
static CreateQueryIndexOptions |
CreateQueryIndexOptions.createQueryIndexOptions()
Creates a new instance with default values.
|
CreateQueryIndexOptions |
CreateQueryIndexOptions.deferred(boolean deferred)
If set to true will defer building of this index (false by default).
|
CreateQueryIndexOptions |
CreateQueryIndexOptions.ignoreIfExists(boolean ignoreIfExists)
Set to true if no exception should be thrown if the index already exists (false by default).
|
CreateQueryIndexOptions |
CreateQueryIndexOptions.numReplicas(int numReplicas)
Configures the number of index replicas.
|
CreateQueryIndexOptions |
CreateQueryIndexOptions.scopeName(String scopeName)
Deprecated.
`collection.queryIndexes()` should now be used for collection-related query index operations.
|
CreateQueryIndexOptions |
CreateQueryIndexOptions.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.createIndex(String indexName,
Collection<String> fields,
CreateQueryIndexOptions options)
Creates a named query index with custom options, on this collection.
|
CompletableFuture<Void> |
AsyncCollectionQueryIndexManager.createIndex(String indexName,
Collection<String> fields,
CreateQueryIndexOptions options)
Creates a named query index with custom options, on this collection.
|
void |
CollectionQueryIndexManager.createIndex(String indexName,
Collection<String> fields,
CreateQueryIndexOptions options)
Creates a named query index with custom options, on this collection.
|
void |
QueryIndexManager.createIndex(String bucketName,
String indexName,
Collection<String> fields,
CreateQueryIndexOptions options)
Creates a named query index with custom options.
|
Mono<Void> |
ReactiveQueryIndexManager.createIndex(String bucketName,
String indexName,
Collection<String> fields,
CreateQueryIndexOptions options)
Creates a named query index with custom options.
|
CompletableFuture<Void> |
AsyncQueryIndexManager.createIndex(String bucketName,
String indexName,
Collection<String> fields,
CreateQueryIndexOptions options)
Creates a named query index with custom options.
|
Copyright © 2024 Couchbase, Inc.. All rights reserved.