Interface ExecutableFindOperation.FindWithQuery<T>
- All Superinterfaces:
ExecutableFindOperation.TerminatingFind<T>
- All Known Subinterfaces:
ExecutableFindOperation.ExecutableFind<T>
,ExecutableFindOperation.FindWithCollection<T>
,ExecutableFindOperation.FindWithProjection<T>
- Enclosing interface:
- ExecutableFindOperation
public static interface ExecutableFindOperation.FindWithQuery<T>
extends ExecutableFindOperation.TerminatingFind<T>
Terminating operations invoking the actual query execution.
- Since:
- 2.0
- Author:
- Christoph Strobl
-
Method Summary
Modifier and TypeMethodDescriptiondefault ExecutableFindOperation.TerminatingFind<T>
matching
(CriteriaDefinition criteria) Set the filtercriteria
to be used.Set the filter query to be used.Set the filter query for the geoNear execution.Methods inherited from interface org.springframework.data.mongodb.core.ExecutableFindOperation.TerminatingFind
all, count, exists, first, firstValue, one, oneValue, scroll, stream
-
Method Details
-
matching
Set the filter query to be used.- Parameters:
query
- must not be null.- Returns:
- new instance of
ExecutableFindOperation.TerminatingFind
. - Throws:
IllegalArgumentException
- if query is null.
-
matching
Set the filtercriteria
to be used.- Parameters:
criteria
- must not be null.- Returns:
- new instance of
ExecutableFindOperation.TerminatingFind
. - Throws:
IllegalArgumentException
- if criteria is null.- Since:
- 3.0
-
near
Set the filter query for the geoNear execution.- Parameters:
nearQuery
- must not be null.- Returns:
- new instance of
ExecutableFindOperation.TerminatingFindNear
. - Throws:
IllegalArgumentException
- if nearQuery is null.
-