Class 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 Detail

      • DBCollectionDistinctOptions

        public DBCollectionDistinctOptions()
        Deprecated.
        Construct a new instance
    • 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