Class DistinctOptions

java.lang.Object
io.quarkus.mongodb.DistinctOptions

public class DistinctOptions extends Object
  • Constructor Details

    • DistinctOptions

      public DistinctOptions()
  • Method Details

    • filter

      public DistinctOptions filter(org.bson.conversions.Bson filter)
      Sets the query filter to apply to the query.
      Parameters:
      filter - the filter, which may be null.
      Returns:
      this
    • maxTime

      public DistinctOptions maxTime(long maxTime, TimeUnit timeUnit)
      Sets the maximum execution time on the server for this operation.
      Parameters:
      maxTime - the max time
      timeUnit - the time unit, which may not be null
      Returns:
      this
    • collation

      public DistinctOptions collation(com.mongodb.client.model.Collation collation)
      Sets the collation options

      A null value represents the server default.

      Parameters:
      collation - the collation options to use
      Returns:
      this
    • apply

      public <T> com.mongodb.reactivestreams.client.DistinctPublisher<T> apply(com.mongodb.reactivestreams.client.DistinctPublisher<T> stream)