Class CreateDatasetAnalyticsOptions

java.lang.Object
com.couchbase.client.java.CommonOptions<CreateDatasetAnalyticsOptions>
com.couchbase.client.java.manager.analytics.CreateDatasetAnalyticsOptions

public class CreateDatasetAnalyticsOptions extends CommonOptions<CreateDatasetAnalyticsOptions>
Allows customizing how datasets are created.
  • Method Details

    • createDatasetAnalyticsOptions

      public static CreateDatasetAnalyticsOptions createDatasetAnalyticsOptions()
      Creates a new instance with default values.
      Returns:
      the instantiated default options.
    • ignoreIfExists

      public CreateDatasetAnalyticsOptions ignoreIfExists(boolean ignore)
      Customizes if an already existing dataset should throw an exception or not (false by default, so it will throw).
      Parameters:
      ignore - true if no exception should be raised if the dataset already exists.
      Returns:
      this options class for chaining purposes.
    • dataverseName

      public CreateDatasetAnalyticsOptions dataverseName(String dataverseName)
      Customizes the dataverse from which this dataset should be created.
      Parameters:
      dataverseName - the name of the dataverse.
      Returns:
      this options class for chaining purposes.
    • condition

      public CreateDatasetAnalyticsOptions condition(String condition)
      Customizes the "WHERE" clause of the index creation statement.
      Parameters:
      condition - the condition that should be appended to the where clause.
      Returns:
      this options class for chaining purposes.
    • build