Class BuildQueryIndexOptions

java.lang.Object
com.couchbase.client.java.CommonOptions<BuildQueryIndexOptions>
com.couchbase.client.java.manager.query.BuildQueryIndexOptions

public class BuildQueryIndexOptions extends CommonOptions<BuildQueryIndexOptions>
Allows customizing how deferred indexes are built.
  • Method Details

    • buildDeferredQueryIndexesOptions

      public static BuildQueryIndexOptions buildDeferredQueryIndexesOptions()
      Creates a new instance with default values.
      Returns:
      the instantiated default options.
    • scopeName

      @Deprecated public BuildQueryIndexOptions scopeName(String scopeName)
      Deprecated.
      `collection.queryIndexes()` should now be used for collection-related query index operations.
      Sets the scope name for this query management operation.

      Please note that if the scope name is set, the collectionName(String) (String)} must also be set.

      Parameters:
      scopeName - the name of the scope.
      Returns:
      this options class for chaining purposes.
    • collectionName

      @Deprecated public BuildQueryIndexOptions collectionName(String collectionName)
      Deprecated.
      `collection.queryIndexes()` should now be used for collection-related query index operations.
      Sets the collection name for this query management operation.

      Please note that if the collection name is set, the scopeName(String) must also be set.

      Parameters:
      collectionName - the name of the collection.
      Returns:
      this options class for chaining purposes.
    • build