public class FindOneAndDeleteOptions
extends java.lang.Object
Constructor and Description |
---|
FindOneAndDeleteOptions() |
Modifier and Type | Method and Description |
---|---|
FindOneAndDeleteOptions |
collation(Collation collation)
Sets the collation options
|
Collation |
getCollation()
Returns the collation options
|
long |
getMaxTime(java.util.concurrent.TimeUnit timeUnit)
Gets the maximum execution time for the find one and delete operation.
|
Bson |
getProjection()
Gets a document describing the fields to return for all matching documents.
|
Bson |
getSort()
Gets the sort criteria to apply to the query.
|
FindOneAndDeleteOptions |
maxTime(long maxTime,
java.util.concurrent.TimeUnit timeUnit)
Sets the maximum execution time on the server for this operation.
|
FindOneAndDeleteOptions |
projection(Bson projection)
Sets a document describing the fields to return for all matching documents.
|
FindOneAndDeleteOptions |
sort(Bson sort)
Sets the sort criteria to apply to the query.
|
java.lang.String |
toString() |
@Nullable public Bson getProjection()
public FindOneAndDeleteOptions projection(@Nullable Bson projection)
projection
- the project document, which may be null.@Nullable public Bson getSort()
public FindOneAndDeleteOptions sort(@Nullable Bson sort)
sort
- the sort criteria, which may be null.public FindOneAndDeleteOptions maxTime(long maxTime, java.util.concurrent.TimeUnit timeUnit)
maxTime
- the max timetimeUnit
- the time unit, which may not be nullpublic long getMaxTime(java.util.concurrent.TimeUnit timeUnit)
timeUnit
- the time unit for the result@Nullable public Collation getCollation()
public FindOneAndDeleteOptions collation(@Nullable Collation collation)
A null value represents the server default.
collation
- the collation options to usepublic java.lang.String toString()
toString
in class java.lang.Object
Copyright © 2010 - 2020 Adobe. All Rights Reserved