Class CreateViewOptions


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

      • CreateViewOptions

        public CreateViewOptions()
    • Method Detail

      • 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