Package | Description |
---|---|
com.mongodb |
The core mongodb package
|
com.mongodb.client.model |
This package contains models and options that help describe MongoCollection operations
|
Modifier and Type | Method and Description |
---|---|
List |
DBCollection.distinct(String fieldName,
DBCollectionDistinctOptions options)
Find the distinct values for a specified field across a collection and returns the results in an array.
|
Modifier and Type | Method and Description |
---|---|
DBCollectionDistinctOptions |
DBCollectionDistinctOptions.collation(Collation collation)
Sets the collation
|
DBCollectionDistinctOptions |
DBCollectionDistinctOptions.filter(DBObject filter)
Sets the selection query to determine the subset of documents from which to retrieve the distinct values.
|
DBCollectionDistinctOptions |
DBCollectionDistinctOptions.readConcern(ReadConcern readConcern)
Sets the readConcern
|
DBCollectionDistinctOptions |
DBCollectionDistinctOptions.readPreference(ReadPreference readPreference)
Sets the readPreference
|
Copyright © 2017. All Rights Reserved.