TResult
- The type of the result.MongoIterable<TResult>
public interface DistinctIterable<TResult> extends MongoIterable<TResult>
Modifier and Type | Method | 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,
TimeUnit timeUnit) |
Sets the maximum execution time on the server for this operation.
|
batchCursor, first, forEach, getBatchSize, into, map
DistinctIterable<TResult> filterβ(@Nullable Bson filter)
filter
- the filter, which may be null.DistinctIterable<TResult> maxTimeβ(long maxTime, 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β(@Nullable Collation collation)
A null value represents the server default.
collation
- the collation options to use