public class CountOptions extends Object
Constructor and Description |
---|
CountOptions() |
CountOptions(CountOptions countOptions) |
CountOptions(JsonObject json) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
CollationOptions |
getCollation() |
JsonObject |
getHint()
Gets the hint to apply.
|
String |
getHintString()
Gets the hint string to apply.
|
Integer |
getLimit()
Gets the limit to apply.
|
Long |
getMaxTime()
Gets the maximum execution time (in ms) on the server for this operation.
|
Integer |
getSkip()
Gets the number of documents to skip.
|
int |
hashCode() |
CountOptions |
setCollation(CollationOptions collation)
Sets the collation options
|
CountOptions |
setHint(JsonObject hint)
Optional.
|
CountOptions |
setHintString(String hint)
Sets the hint to apply.
|
CountOptions |
setLimit(Integer limit)
Sets the limit to apply.
|
CountOptions |
setMaxTime(Long maxTime)
Sets the maximum execution time (in ms) on the server for this operation.
|
CountOptions |
setSkip(Integer skip)
Optional.
|
JsonObject |
toJson() |
com.mongodb.client.model.CountOptions |
toMongoDriverObject()
Returns the mongo-java-driver specific object.
|
String |
toString() |
public CountOptions()
public CountOptions(CountOptions countOptions)
public CountOptions(JsonObject json)
public JsonObject toJson()
public com.mongodb.client.model.CountOptions toMongoDriverObject()
public JsonObject getHint()
public CountOptions setHint(JsonObject hint)
hint
- public String getHintString()
public CountOptions setHintString(String hint)
hint
- the name of the index which should be used for the operationpublic Integer getLimit()
public CountOptions setLimit(Integer limit)
limit
- the limitpublic Integer getSkip()
public CountOptions setSkip(Integer skip)
skip
- public Long getMaxTime()
public CountOptions setMaxTime(Long maxTime)
maxTime
- the max time (in ms)public CollationOptions getCollation()
public CountOptions setCollation(CollationOptions collation)
Copyright © 2024 Eclipse. All rights reserved.