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()
@Nullable public DBObject getFilter()
public DBCollectionDistinctOptions filter(@Nullable DBObject filter)
filter - the selection query to determine the subset of documents from which to retrieve the distinct values@Nullable public ReadPreference getReadPreference()
public DBCollectionDistinctOptions readPreference(@Nullable ReadPreference readPreference)
readPreference - the readPreference@Nullable public ReadConcern getReadConcern()
public DBCollectionDistinctOptions readConcern(@Nullable ReadConcern readConcern)
readConcern - the readConcern@Nullable public Collation getCollation()
public DBCollectionDistinctOptions collation(@Nullable Collation collation)
collation - the collationCopyright © 2010 - 2023 Adobe. All Rights Reserved