Package | Description |
---|---|
com.mongodb |
The core mongodb package
|
com.mongodb.async.client |
This packages contains classes for the new async client
|
com.mongodb.client |
This package contains classes for the new client api for MongoDatabase and MongoCollection
|
com.mongodb.client.model |
This package contains models and options that help describe MongoCollection operations
|
Modifier and Type | Method and Description |
---|---|
long |
MongoCollectionImpl.count(Bson filter,
CountOptions options) |
long |
MongoCollectionImpl.count(ClientSession clientSession,
Bson filter,
CountOptions options) |
private long |
MongoCollectionImpl.executeCount(ClientSession clientSession,
Bson filter,
CountOptions options) |
Modifier and Type | Method and Description |
---|---|
void |
MongoCollectionImpl.count(Bson filter,
CountOptions options,
SingleResultCallback<java.lang.Long> callback) |
void |
MongoCollection.count(Bson filter,
CountOptions options,
SingleResultCallback<java.lang.Long> callback)
Counts the number of documents in the collection according to the given options.
|
void |
MongoCollectionImpl.count(ClientSession clientSession,
Bson filter,
CountOptions options,
SingleResultCallback<java.lang.Long> callback) |
void |
MongoCollection.count(ClientSession clientSession,
Bson filter,
CountOptions options,
SingleResultCallback<java.lang.Long> callback)
Counts the number of documents in the collection according to the given options.
|
private void |
MongoCollectionImpl.executeCount(ClientSession clientSession,
Bson filter,
CountOptions options,
SingleResultCallback<java.lang.Long> callback) |
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.
|
long |
MongoCollection.count(ClientSession clientSession,
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.collation(Collation collation)
Sets the collation options
|
CountOptions |
CountOptions.hint(Bson hint)
Sets the hint to apply.
|
CountOptions |
CountOptions.hintString(java.lang.String hint)
Sets the hint to apply.
|
CountOptions |
CountOptions.limit(int limit)
Sets the limit to apply.
|
CountOptions |
CountOptions.maxTime(long maxTime,
java.util.concurrent.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.
|