Package com.mongodb.client.model
Class DBCollectionCountOptions
java.lang.Object
com.mongodb.client.model.DBCollectionCountOptions
Deprecated.
Usage of this API is not supported in AEM as a Cloud Service.
The options for a count operation.
- Since:
- 3.4
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionDeprecated.Sets the collationDeprecated.Returns the collation optionsgetHint()
Deprecated.Gets the hint to apply.Deprecated.Gets the hint string to apply.int
getLimit()
Deprecated.Gets the limit to apply.long
getMaxTime
(TimeUnit timeUnit) Deprecated.Gets the maximum execution time on the server for this operation.Deprecated.Returns the readConcernDeprecated.Returns the readPreferenceint
getSkip()
Deprecated.Gets the number of documents to skip.Deprecated.Sets the hint to apply.hintString
(String hint) Deprecated.Sets the hint to apply.limit
(int limit) Deprecated.Sets the limit to apply.limit
(long limit) Deprecated.Sets the limit to apply.Deprecated.Sets the maximum execution time on the server for this operation.readConcern
(ReadConcern readConcern) Deprecated.Sets the readConcernreadPreference
(ReadPreference readPreference) Deprecated.Sets the readPreferenceskip
(int skip) Deprecated.Sets the number of documents to skip.skip
(long skip) Deprecated.Sets the number of documents to skip.
-
Constructor Details
-
DBCollectionCountOptions
public DBCollectionCountOptions()Deprecated.Construct a new instance
-
-
Method Details
-
getHint
Deprecated.Gets the hint to apply.- Returns:
- the hint, which should describe an existing
-
getHintString
Deprecated.Gets the hint string to apply.- Returns:
- the hint string, which should be the name of an existing index
-
hint
Deprecated.Sets the hint to apply.- Parameters:
hint
- a document describing the index which should be used for this operation.- Returns:
- this
-
hintString
Deprecated.Sets the hint to apply.- Parameters:
hint
- the name of the index which should be used for the operation- Returns:
- this
-
getLimit
public int getLimit()Deprecated.Gets the limit to apply. The default is 0, which means there is no limit.- Returns:
- the limit
-
limit
Deprecated.Sets the limit to apply.- Parameters:
limit
- the limit- Returns:
- this
-
getSkip
public int getSkip()Deprecated.Gets the number of documents to skip. The default is 0.- Returns:
- the number of documents to skip
-
skip
Deprecated.Sets the number of documents to skip.- Parameters:
skip
- the number of documents to skip- Returns:
- this
-
limit
Deprecated.Sets the limit to apply.- Parameters:
limit
- the limit- Returns:
- this
-
skip
Deprecated.Sets the number of documents to skip.- Parameters:
skip
- the number of documents to skip- Returns:
- this
-
getMaxTime
Deprecated.Gets the maximum execution time on the server for this operation. The default is 0, which places no limit on the execution time.- Parameters:
timeUnit
- the time unit to return the result in- Returns:
- the maximum execution time in the given time unit
-
maxTime
Deprecated.Sets the maximum execution time on the server for this operation.- Parameters:
maxTime
- the max timetimeUnit
- the time unit, which may not be null- Returns:
- this
-
getReadPreference
Deprecated.Returns the readPreference- Returns:
- the readPreference
-
readPreference
Deprecated.Sets the readPreference- Parameters:
readPreference
- the readPreference- Returns:
- this
-
getReadConcern
Deprecated.Returns the readConcern- Returns:
- the readConcern
-
readConcern
Deprecated.Sets the readConcern- Parameters:
readConcern
- the readConcern- Returns:
- this
-
getCollation
Deprecated.Returns the collation options- Returns:
- the collation options
-
collation
Deprecated.Sets the collation- Parameters:
collation
- the collation- Returns:
- this
-