Class CreateViewOptions

java.lang.Object
com.mongodb.client.model.CreateViewOptions

public class CreateViewOptions extends Object
Options for creating a view
Since:
3.4
MongoDB documentation
Create Command
Since server release
3.4
  • Constructor Details

    • CreateViewOptions

      public CreateViewOptions()
  • Method Details

    • getCollation

      @Nullable public Collation getCollation()
      Returns the collation options
      Returns:
      the collation options
    • collation

      public CreateViewOptions collation(@Nullable Collation collation)
      Sets the collation options

      A null value represents the server default.

      Parameters:
      collation - the collation options to use
      Returns:
      this
    • toString

      public String toString()
      Overrides:
      toString in class Object