Package | Description |
---|---|
com.mongodb.async.client |
This packages contains classes for the new async client
|
com.mongodb.client |
This package contains client interfaces
|
com.mongodb.client.model |
This package contains models and options that help describe MongoCollection operations
|
Modifier and Type | Method and Description |
---|---|
void |
MongoCollection.count(Bson filter,
CountOptions options,
SingleResultCallback<Long> callback)
Counts the number of documents in the collection according to the given options.
|
Modifier and Type | Method and Description |
---|---|
long |
MongoCollection.count(Bson filter,
CountOptions options)
Counts the number of documents in the collection according to the given options.
|
Modifier and Type | Method and Description |
---|---|
CountOptions |
CountOptions.hint(Bson hint)
Sets the hint to apply.
|
CountOptions |
CountOptions.hintString(String hint)
Sets the hint to apply.
|
CountOptions |
CountOptions.limit(int limit)
Sets the limit to apply.
|
CountOptions |
CountOptions.maxTime(long maxTime,
TimeUnit timeUnit)
Sets the maximum execution time on the server for this operation.
|
CountOptions |
CountOptions.skip(int skip)
Sets the number of documents to skip.
|
Copyright © 2016. All Rights Reserved.