Constructor | Description |
---|---|
CountOptionsโ() |
Modifier and Type | Method | Description |
---|---|---|
CountOptions |
collationโ(Collation collation) |
Sets the collation options
|
Collation |
getCollationโ() |
Returns the collation options
|
Bson |
getHintโ() |
Gets the hint to apply.
|
String |
getHintStringโ() |
Gets the hint string to apply.
|
int |
getLimitโ() |
Gets the limit to apply.
|
long |
getMaxTimeโ(TimeUnit timeUnit) |
Gets the maximum execution time on the server for this operation.
|
int |
getSkipโ() |
Gets the number of documents to skip.
|
CountOptions |
hintโ(Bson hint) |
Sets the hint to apply.
|
CountOptions |
hintStringโ(String hint) |
Sets the hint to apply.
|
CountOptions |
limitโ(int limit) |
Sets the limit to apply.
|
CountOptions |
maxTimeโ(long maxTime,
TimeUnit timeUnit) |
Sets the maximum execution time on the server for this operation.
|
CountOptions |
skipโ(int skip) |
Sets the number of documents to skip.
|
String |
toStringโ() |
@Nullable public Bson getHintโ()
@Nullable public String getHintStringโ()
public CountOptions hintโ(@Nullable Bson hint)
hint
- a document describing the index which should be used for this operation.public CountOptions hintStringโ(@Nullable String hint)
hint
- the name of the index which should be used for the operationpublic int getLimitโ()
public CountOptions limitโ(int limit)
limit
- the limitpublic int getSkipโ()
public CountOptions skipโ(int skip)
skip
- the number of documents to skippublic long getMaxTimeโ(TimeUnit timeUnit)
timeUnit
- the time unit to return the result inpublic CountOptions maxTimeโ(long maxTime, TimeUnit timeUnit)
maxTime
- the max timetimeUnit
- the time unit, which may not be null@Nullable public Collation getCollationโ()
public CountOptions collationโ(@Nullable Collation collation)
A null value represents the server default.
collation
- the collation options to use