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