Class MongoFindOptions

java.lang.Object
io.micronaut.data.mongodb.operations.options.MongoFindOptions

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

    • MongoFindOptions

      public MongoFindOptions()
    • MongoFindOptions

      public MongoFindOptions(MongoFindOptions options)
  • Method Details

    • copyNotNullFrom

      public void copyNotNullFrom(MongoFindOptions options)
    • isEmpty

      public boolean isEmpty()
    • getFilter

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

      public MongoFindOptions filter(org.bson.conversions.Bson filter)
    • getBatchSize

      @Nullable public @Nullable Integer getBatchSize()
    • batchSize

      public MongoFindOptions batchSize(Integer batchSize)
    • getLimit

      @Nullable public @Nullable Integer getLimit()
    • limit

      public MongoFindOptions limit(Integer limit)
    • getProjection

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

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

      @Nullable public @Nullable Long getMaxTimeMS()
    • maxTimeMS

      public MongoFindOptions maxTimeMS(Long maxTimeMS)
    • getMaxAwaitTimeMS

      @Nullable public @Nullable Long getMaxAwaitTimeMS()
    • maxAwaitTimeMS

      public MongoFindOptions maxAwaitTimeMS(Long maxAwaitTimeMS)
    • getSkip

      @Nullable public @Nullable Integer getSkip()
    • skip

      public MongoFindOptions skip(Integer skip)
    • getSort

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

      public MongoFindOptions sort(org.bson.conversions.Bson sort)
    • getCursorType

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

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

      @Nullable public @Nullable Boolean getNoCursorTimeout()
    • noCursorTimeout

      public MongoFindOptions noCursorTimeout(Boolean noCursorTimeout)
    • getPartial

      @Nullable public @Nullable Boolean getPartial()
    • partial

      public MongoFindOptions partial(Boolean partial)
    • getCollation

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

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

      @Nullable public @Nullable String getComment()
    • comment

      public MongoFindOptions comment(String comment)
    • getHint

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

      public MongoFindOptions hint(org.bson.conversions.Bson hint)
    • getMax

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

      public MongoFindOptions max(org.bson.conversions.Bson max)
    • getMin

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

      public MongoFindOptions min(org.bson.conversions.Bson min)
    • getReturnKey

      @Nullable public @Nullable Boolean getReturnKey()
    • returnKey

      public MongoFindOptions returnKey(Boolean returnKey)
    • getShowRecordId

      @Nullable public @Nullable Boolean getShowRecordId()
    • showRecordId

      public MongoFindOptions showRecordId(Boolean showRecordId)
    • getAllowDiskUse

      @Nullable public @Nullable Boolean getAllowDiskUse()
    • allowDiskUse

      public MongoFindOptions allowDiskUse(Boolean allowDiskUse)