Package io.quarkus.mongodb
Class DistinctOptions
- java.lang.Object
-
- io.quarkus.mongodb.DistinctOptions
-
public class DistinctOptions extends Object
-
-
Constructor Summary
Constructors Constructor Description DistinctOptions()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <T> com.mongodb.reactivestreams.client.DistinctPublisher<T>apply(com.mongodb.reactivestreams.client.DistinctPublisher<T> stream)DistinctOptionscollation(com.mongodb.client.model.Collation collation)Sets the collation optionsDistinctOptionsfilter(org.bson.conversions.Bson filter)Sets the query filter to apply to the query.DistinctOptionsmaxTime(long maxTime, TimeUnit timeUnit)Sets the maximum execution time on the server for this operation.
-
-
-
Method Detail
-
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 timetimeUnit- the time unit, which may not be null- Returns:
- this
-
collation
public DistinctOptions collation(com.mongodb.client.model.Collation collation)
Sets the collation optionsA 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)
-
-