TResult
- The type of the result.public interface DistinctPublisher<TResult>
extends org.reactivestreams.Publisher<TResult>
Modifier and Type | Method and Description |
---|---|
DistinctPublisher<TResult> |
collation(com.mongodb.client.model.Collation collation)
Sets the collation options
|
DistinctPublisher<TResult> |
filter(org.bson.conversions.Bson filter)
Sets the query filter to apply to the query.
|
DistinctPublisher<TResult> |
maxTime(long maxTime,
TimeUnit timeUnit)
Sets the maximum execution time on the server for this operation.
|
DistinctPublisher<TResult> filter(org.bson.conversions.Bson filter)
filter
- the filter, which may be null.DistinctPublisher<TResult> maxTime(long maxTime, TimeUnit timeUnit)
maxTime
- the max timetimeUnit
- the time unit, which may not be nullDistinctPublisher<TResult> collation(com.mongodb.client.model.Collation collation)
A null value represents the server default.
collation
- the collation options to use