Class DBCreateViewOptions

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

public class DBCreateViewOptions extends Object
The options to apply when creating a view
Since:
3.4
MongoDB documentation
Create Command
Since server release
3.4
  • Constructor Details

    • DBCreateViewOptions

      public DBCreateViewOptions()
  • Method Details

    • getCollation

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

      public DBCreateViewOptions collation(Collation collation)
      Sets the collation
      Parameters:
      collation - the collation
      Returns:
      this