public class DBCollectionDistinctOptions extends Object
Constructor and Description |
---|
DBCollectionDistinctOptions()
Construct a new instance
|
Modifier and Type | Method and Description |
---|---|
DBCollectionDistinctOptions |
collation(com.mongodb.client.model.Collation collation)
Sets the collation
|
DBCollectionDistinctOptions |
filter(DBObject filter)
Sets the selection query to determine the subset of documents from which to retrieve the distinct values.
|
com.mongodb.client.model.Collation |
getCollation()
Returns the collation options
|
DBObject |
getFilter()
Gets the selection query to determine the subset of documents from which to retrieve the distinct values
|
com.mongodb.ReadConcern |
getReadConcern()
Returns the readConcern
|
com.mongodb.ReadPreference |
getReadPreference()
Returns the readPreference
|
DBCollectionDistinctOptions |
readConcern(com.mongodb.ReadConcern readConcern)
Sets the readConcern
|
DBCollectionDistinctOptions |
readPreference(com.mongodb.ReadPreference readPreference)
Sets the readPreference
|
public DBCollectionDistinctOptions()
public DBObject getFilter()
public DBCollectionDistinctOptions filter(DBObject filter)
filter
- the selection query to determine the subset of documents from which to retrieve the distinct valuespublic com.mongodb.ReadPreference getReadPreference()
public DBCollectionDistinctOptions readPreference(com.mongodb.ReadPreference readPreference)
readPreference
- the readPreferencepublic com.mongodb.ReadConcern getReadConcern()
public DBCollectionDistinctOptions readConcern(com.mongodb.ReadConcern readConcern)
readConcern
- the readConcernpublic com.mongodb.client.model.Collation getCollation()
public DBCollectionDistinctOptions collation(com.mongodb.client.model.Collation collation)
collation
- the collationCopyright © 2017. All rights reserved.