Package | Description |
---|---|
com.mongodb | |
com.mongodb.client.model |
Modifier and Type | Method and Description |
---|---|
long |
DBCollection.count(DBObject query,
DBCollectionCountOptions options)
Get the count of documents in collection that would match a criteria.
|
long |
DBCollection.getCount(DBObject query,
DBCollectionCountOptions options)
Get the count of documents in collection that would match a criteria.
|
Modifier and Type | Method and Description |
---|---|
DBCollectionCountOptions |
DBCollectionCountOptions.collation(com.mongodb.client.model.Collation collation)
Sets the collation
|
DBCollectionCountOptions |
DBCollectionCountOptions.hint(DBObject hint)
Sets the hint to apply.
|
DBCollectionCountOptions |
DBCollectionCountOptions.hintString(String hint)
Sets the hint to apply.
|
DBCollectionCountOptions |
DBCollectionCountOptions.limit(int limit)
Sets the limit to apply.
|
DBCollectionCountOptions |
DBCollectionCountOptions.limit(long limit)
Sets the limit to apply.
|
DBCollectionCountOptions |
DBCollectionCountOptions.maxTime(long maxTime,
TimeUnit timeUnit)
Sets the maximum execution time on the server for this operation.
|
DBCollectionCountOptions |
DBCollectionCountOptions.readConcern(com.mongodb.ReadConcern readConcern)
Sets the readConcern
|
DBCollectionCountOptions |
DBCollectionCountOptions.readPreference(com.mongodb.ReadPreference readPreference)
Sets the readPreference
|
DBCollectionCountOptions |
DBCollectionCountOptions.skip(int skip)
Sets the number of documents to skip.
|
DBCollectionCountOptions |
DBCollectionCountOptions.skip(long skip)
Sets the number of documents to skip.
|
Copyright © 2017. All rights reserved.