TResult
- The type of the result.public interface DistinctIterable<TResult> extends MongoIterable<TResult>
Modifier and Type | Method and Description |
---|---|
DistinctIterable<TResult> |
batchSize(int batchSize)
Sets the number of documents to return per batch.
|
DistinctIterable<TResult> |
collation(Collation collation)
Sets the collation options
|
DistinctIterable<TResult> |
filter(Bson filter)
Sets the query filter to apply to the query.
|
DistinctIterable<TResult> |
maxTime(long maxTime,
java.util.concurrent.TimeUnit timeUnit)
Sets the maximum execution time on the server for this operation.
|
DistinctIterable<TResult> filter(Bson filter)
filter
- the filter, which may be null.DistinctIterable<TResult> maxTime(long maxTime, java.util.concurrent.TimeUnit timeUnit)
maxTime
- the max timetimeUnit
- the time unit, which may not be nullDistinctIterable<TResult> batchSize(int batchSize)
batchSize
in interface MongoIterable<TResult>
batchSize
- the batch sizeDistinctIterable<TResult> collation(Collation collation)
A null value represents the server default.
collation
- the collation options to use