Class CoreCollectionQueryIndexManager
java.lang.Object
com.couchbase.client.core.manager.CoreCollectionQueryIndexManager
-
Constructor Summary
ConstructorsConstructorDescriptionCoreCollectionQueryIndexManager(CoreQueryOps queryOps, RequestTracer requestTracer, CoreKeyspace collection) -
Method Summary
Modifier and TypeMethodDescriptioncreateIndex(String indexName, Collection<String> fields, CoreCreateQueryIndexOptions options) dropIndex(String indexName, CoreDropQueryIndexOptions options) static VoidfailIfIndexesOfflineHelper(Set<String> indexNames, boolean includePrimary, List<CoreQueryIndex> allIndexes) static StringformatIndexFields(Collection<String> fields) com.couchbase.client.core.deps.com.fasterxml.jackson.databind.node.ObjectNodestatic Stringquote(CoreKeyspace keyspace) static Stringstatic CoreQueryOptionstoQueryOptions(CoreCommonOptions options, boolean readonly, com.couchbase.client.core.deps.com.fasterxml.jackson.databind.node.ObjectNode parameters) static ThrowabletoWatchTimeoutException(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
-