Class CountOptions
java.lang.Object
io.vertx.ext.mongo.CountOptions
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleangetHint()Gets the hint to apply.Gets the hint string to apply.getLimit()Gets the limit to apply.Gets the maximum execution time (in ms) on the server for this operation.getSkip()Gets the number of documents to skip.inthashCode()setCollation(CollationOptions collation) Sets the collation optionssetHint(JsonObject hint) Optional.setHintString(String hint) Sets the hint to apply.Sets the limit to apply.setMaxTime(Long maxTime) Sets the maximum execution time (in ms) on the server for this operation.Optional.toJson()com.mongodb.client.model.CountOptionsReturns the mongo-java-driver specific object.toString()
-
Constructor Details
-
CountOptions
public CountOptions() -
CountOptions
-
CountOptions
-
-
Method Details
-
toJson
-
toMongoDriverObject
public com.mongodb.client.model.CountOptions toMongoDriverObject()Returns the mongo-java-driver specific object.- Returns:
- com.mongodb.client.model.CountOptions
-
getHint
Gets the hint to apply.- Returns:
- the hint, which should describe an existing
-
setHint
Optional. The index to use. Specify either the index name as a string or the index specification document.- Parameters:
hint-- Returns:
- CountOptions
-
getHintString
Gets the hint string to apply.- Returns:
- the hint string, which should be the name of an existing index
-
setHintString
Sets the hint to apply. Note: If hint is set, that will be used instead of any hint string.- Parameters:
hint- the name of the index which should be used for the operation- Returns:
- CountOptions
-
getLimit
Gets the limit to apply. The default is 0, which means there is no limit.- Returns:
- the limit
-
setLimit
Sets the limit to apply.- Parameters:
limit- the limit- Returns:
- CountOptions
-
getSkip
Gets the number of documents to skip. The default is 0.- Returns:
- the number of documents to skip
-
setSkip
Optional. The number of matching documents to skip before returning results.- Parameters:
skip-- Returns:
-
getMaxTime
Gets the maximum execution time (in ms) on the server for this operation. The default is 0, which places no limit on the execution time.- Returns:
- the maximum execution time in milliseconds
-
setMaxTime
Sets the maximum execution time (in ms) on the server for this operation.- Parameters:
maxTime- the max time (in ms)- Returns:
- CountOptions
-
getCollation
-
setCollation
Sets the collation options- Returns:
- CollationOptions
-
equals
-
hashCode
-
toString
-