Class MongoFindOptions


  • public final class MongoFindOptions
    extends java.lang.Object
    The MongoDB's find options.
    Since:
    3.3.0
    Author:
    Denis Stepanov
    • Constructor Detail

      • MongoFindOptions

        public MongoFindOptions()
    • Method Detail

      • isEmpty

        public boolean isEmpty()
      • getFilter

        @Nullable
        public org.bson.conversions.Bson getFilter()
      • getBatchSize

        @Nullable
        public java.lang.Integer getBatchSize()
      • batchSize

        public MongoFindOptions batchSize​(java.lang.Integer batchSize)
      • getLimit

        @Nullable
        public java.lang.Integer getLimit()
      • getProjection

        @Nullable
        public org.bson.conversions.Bson getProjection()
      • projection

        public MongoFindOptions projection​(org.bson.conversions.Bson projection)
      • getMaxTimeMS

        @Nullable
        public java.lang.Long getMaxTimeMS()
      • getMaxAwaitTimeMS

        @Nullable
        public java.lang.Long getMaxAwaitTimeMS()
      • maxAwaitTimeMS

        public MongoFindOptions maxAwaitTimeMS​(java.lang.Long maxAwaitTimeMS)
      • getSkip

        @Nullable
        public java.lang.Integer getSkip()
      • getSort

        @Nullable
        public org.bson.conversions.Bson getSort()
      • getCursorType

        @Nullable
        public com.mongodb.CursorType getCursorType()
      • cursorType

        public MongoFindOptions cursorType​(com.mongodb.CursorType cursorType)
      • getNoCursorTimeout

        @Nullable
        public java.lang.Boolean getNoCursorTimeout()
      • noCursorTimeout

        public MongoFindOptions noCursorTimeout​(java.lang.Boolean noCursorTimeout)
      • getPartial

        @Nullable
        public java.lang.Boolean getPartial()
      • getCollation

        @Nullable
        public com.mongodb.client.model.Collation getCollation()
      • collation

        public MongoFindOptions collation​(com.mongodb.client.model.Collation collation)
      • getComment

        @Nullable
        public java.lang.String getComment()
      • getHint

        @Nullable
        public org.bson.conversions.Bson getHint()
      • getMax

        @Nullable
        public org.bson.conversions.Bson getMax()
      • getMin

        @Nullable
        public org.bson.conversions.Bson getMin()
      • getReturnKey

        @Nullable
        public java.lang.Boolean getReturnKey()
      • returnKey

        public MongoFindOptions returnKey​(java.lang.Boolean returnKey)
      • getShowRecordId

        @Nullable
        public java.lang.Boolean getShowRecordId()
      • showRecordId

        public MongoFindOptions showRecordId​(java.lang.Boolean showRecordId)
      • getAllowDiskUse

        @Nullable
        public java.lang.Boolean getAllowDiskUse()
      • allowDiskUse

        public MongoFindOptions allowDiskUse​(java.lang.Boolean allowDiskUse)