Package com.mongodb.client.model
Class DBCollectionDistinctOptions
- java.lang.Object
-
- com.mongodb.client.model.DBCollectionDistinctOptions
-
@Deprecated(since="2021-05-27") public class DBCollectionDistinctOptions extends java.lang.Object
Deprecated.Usage of this API is not supported in AEM as a Cloud Service.The options for a distinct operation.- Since:
- 3.4
-
-
Constructor Summary
Constructors Constructor Description DBCollectionDistinctOptions()
Deprecated.Construct a new instance
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description DBCollectionDistinctOptions
collation(Collation collation)
Deprecated.Sets the collationDBCollectionDistinctOptions
filter(DBObject filter)
Deprecated.Sets the selection query to determine the subset of documents from which to retrieve the distinct values.Collation
getCollation()
Deprecated.Returns the collation optionsDBObject
getFilter()
Deprecated.Gets the selection query to determine the subset of documents from which to retrieve the distinct valuesReadConcern
getReadConcern()
Deprecated.Returns the readConcernReadPreference
getReadPreference()
Deprecated.Returns the readPreferenceDBCollectionDistinctOptions
readConcern(ReadConcern readConcern)
Deprecated.Sets the readConcernDBCollectionDistinctOptions
readPreference(ReadPreference readPreference)
Deprecated.Sets the readPreference
-
-
-
Method Detail
-
getFilter
@Nullable public DBObject getFilter()
Deprecated.Gets the selection query to determine the subset of documents from which to retrieve the distinct values- Returns:
- the query
-
filter
public DBCollectionDistinctOptions filter(@Nullable DBObject filter)
Deprecated.Sets the selection query to determine the subset of documents from which to retrieve the distinct values.- Parameters:
filter
- the selection query to determine the subset of documents from which to retrieve the distinct values- Returns:
- this
-
getReadPreference
@Nullable public ReadPreference getReadPreference()
Deprecated.Returns the readPreference- Returns:
- the readPreference
-
readPreference
public DBCollectionDistinctOptions readPreference(@Nullable ReadPreference readPreference)
Deprecated.Sets the readPreference- Parameters:
readPreference
- the readPreference- Returns:
- this
-
getReadConcern
@Nullable public ReadConcern getReadConcern()
Deprecated.Returns the readConcern- Returns:
- the readConcern
-
readConcern
public DBCollectionDistinctOptions readConcern(@Nullable ReadConcern readConcern)
Deprecated.Sets the readConcern- Parameters:
readConcern
- the readConcern- Returns:
- this
-
getCollation
@Nullable public Collation getCollation()
Deprecated.Returns the collation options- Returns:
- the collation options
-
collation
public DBCollectionDistinctOptions collation(@Nullable Collation collation)
Deprecated.Sets the collation- Parameters:
collation
- the collation- Returns:
- this
-
-