Class CoreCollectionQueryIndexManager
java.lang.Object
com.couchbase.client.core.manager.CoreCollectionQueryIndexManager
-
Constructor Summary
ConstructorDescriptionCoreCollectionQueryIndexManager
(CoreQueryOps queryOps, RequestTracer requestTracer, CoreKeyspace collection) -
Method Summary
Modifier and TypeMethodDescriptioncreateIndex
(String indexName, Collection<String> fields, CoreCreateQueryIndexOptions options) dropIndex
(String indexName, CoreDropQueryIndexOptions options) static Void
failIfIndexesOfflineHelper
(Set<String> indexNames, boolean includePrimary, List<CoreQueryIndex> allIndexes) static String
formatIndexFields
(Collection<String> fields) com.couchbase.client.core.deps.com.fasterxml.jackson.databind.node.ObjectNode
static String
quote
(CoreKeyspace keyspace) static String
static CoreQueryOptions
toQueryOptions
(CoreCommonOptions options, boolean readonly, com.couchbase.client.core.deps.com.fasterxml.jackson.databind.node.ObjectNode parameters) static Throwable
toWatchTimeoutException
(Throwable t, Duration timeout) watchIndexes
(Collection<String> indexNames, Duration timeout, CoreWatchQueryIndexesOptions options)
-
Constructor Details
-
CoreCollectionQueryIndexManager
public CoreCollectionQueryIndexManager(CoreQueryOps queryOps, RequestTracer requestTracer, CoreKeyspace collection)
-
-
Method Details
-
getNamedParamsForGetAllIndexes
public com.couchbase.client.core.deps.com.fasterxml.jackson.databind.node.ObjectNode getNamedParamsForGetAllIndexes() -
getStatementForGetAllIndexes
-
createIndex
public CompletableFuture<Void> createIndex(String indexName, Collection<String> fields, CoreCreateQueryIndexOptions options) -
createPrimaryIndex
-
getAllIndexes
-
dropPrimaryIndex
-
dropIndex
-
buildDeferredIndexes
-
watchIndexes
public CompletableFuture<Void> watchIndexes(Collection<String> indexNames, Duration timeout, CoreWatchQueryIndexesOptions options) -
formatIndexFields
-
toWatchTimeoutException
-
failIfIndexesOfflineHelper
public static Void failIfIndexesOfflineHelper(Set<String> indexNames, boolean includePrimary, List<CoreQueryIndex> allIndexes) -
toQueryOptions
public static CoreQueryOptions toQueryOptions(CoreCommonOptions options, boolean readonly, com.couchbase.client.core.deps.com.fasterxml.jackson.databind.node.ObjectNode parameters) -
quote
-
quote
-