public class DistinctOptions extends Object
| Constructor and Description |
|---|
DistinctOptions() |
| Modifier and Type | Method and Description |
|---|---|
<T> com.mongodb.reactivestreams.client.DistinctPublisher<T> |
apply(com.mongodb.reactivestreams.client.DistinctPublisher<T> stream) |
DistinctOptions |
collation(com.mongodb.client.model.Collation collation)
Sets the collation options
|
DistinctOptions |
filter(org.bson.conversions.Bson filter)
Sets the query filter to apply to the query.
|
DistinctOptions |
maxTime(long maxTime,
TimeUnit timeUnit)
Sets the maximum execution time on the server for this operation.
|
public DistinctOptions filter(org.bson.conversions.Bson filter)
filter - the filter, which may be null.public DistinctOptions maxTime(long maxTime, TimeUnit timeUnit)
maxTime - the max timetimeUnit - the time unit, which may not be nullpublic DistinctOptions collation(com.mongodb.client.model.Collation collation)
A null value represents the server default.
collation - the collation options to usepublic <T> com.mongodb.reactivestreams.client.DistinctPublisher<T> apply(com.mongodb.reactivestreams.client.DistinctPublisher<T> stream)
Copyright © 2020 JBoss by Red Hat. All rights reserved.