Package | Description |
---|---|
com.mongodb | |
com.mongodb.client.model |
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(com.mongodb.client.model.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(com.mongodb.ReadConcern readConcern)
Sets the readConcern
|
DBCollectionDistinctOptions |
DBCollectionDistinctOptions.readPreference(com.mongodb.ReadPreference readPreference)
Sets the readPreference
|
Copyright © 2017. All rights reserved.