public class DBCollectionDistinctOptions
extends java.lang.Object
Constructor and Description |
---|
DBCollectionDistinctOptions()
Construct a new instance
|
Modifier and Type | Method and Description |
---|---|
DBCollectionDistinctOptions |
collation(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.
|
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
|
ReadConcern |
getReadConcern()
Returns the readConcern
|
ReadPreference |
getReadPreference()
Returns the readPreference
|
DBCollectionDistinctOptions |
readConcern(ReadConcern readConcern)
Sets the readConcern
|
DBCollectionDistinctOptions |
readPreference(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 ReadPreference getReadPreference()
public DBCollectionDistinctOptions readPreference(ReadPreference readPreference)
readPreference
- the readPreferencepublic ReadConcern getReadConcern()
public DBCollectionDistinctOptions readConcern(ReadConcern readConcern)
readConcern
- the readConcernpublic Collation getCollation()
public DBCollectionDistinctOptions collation(Collation collation)
collation
- the collation