Class CountOptions

  • java.lang.Object
    • com.mongodb.client.model.CountOptions
      • dev.morphia.query.CountOptions
    • Constructor Detail

      • CountOptions

        public CountOptions()
    • Method Detail

      • hint

        public CountOptions hint​(String hint)
        Defines the index hint value
        Parameters:
        hint - the hint
        Returns:
        this
      • hint

        public CountOptions hint​(org.bson.Document hint)
        Defines the index hint value
        Parameters:
        hint - the hint
        Returns:
        this
      • hint

        public CountOptions hint​(@Nullable
                                 org.bson.conversions.Bson hint)
        Overrides:
        hint in class com.mongodb.client.model.CountOptions
      • limit

        public CountOptions limit​(int limit)
        Overrides:
        limit in class com.mongodb.client.model.CountOptions
      • hintString

        public CountOptions hintString​(@Nullable
                                       String hint)
        Overrides:
        hintString in class com.mongodb.client.model.CountOptions
      • skip

        public CountOptions skip​(int skip)
        Overrides:
        skip in class com.mongodb.client.model.CountOptions
      • getMaxTime

        public long getMaxTime​(TimeUnit timeUnit)
        Overrides:
        getMaxTime in class com.mongodb.client.model.CountOptions
      • maxTime

        public CountOptions maxTime​(long maxTime,
                                    TimeUnit timeUnit)
        Overrides:
        maxTime in class com.mongodb.client.model.CountOptions
      • collation

        public CountOptions collation​(@Nullable
                                      com.mongodb.client.model.Collation collation)
        Overrides:
        collation in class com.mongodb.client.model.CountOptions
      • readConcern

        public com.mongodb.ReadConcern readConcern()
        Returns the readConcern
        Returns:
        the readConcern
        Since server release
        3.2
      • readConcern

        public CountOptions readConcern​(com.mongodb.ReadConcern readConcern)
        Sets the readConcern
        Parameters:
        readConcern - the readConcern
        Returns:
        this
        Since server release
        3.2
      • readPreference

        public com.mongodb.ReadPreference readPreference()
        Returns the readPreference
        Returns:
        the readPreference
      • readPreference

        public CountOptions readPreference​(com.mongodb.ReadPreference readPreference)
        Sets the readPreference
        Parameters:
        readPreference - the readPreference
        Returns:
        this