Interface ExecutableFindOperation.FindWithProjection<T>
- All Superinterfaces:
ExecutableFindOperation.FindDistinct
,ExecutableFindOperation.FindWithQuery<T>
,ExecutableFindOperation.TerminatingFind<T>
- All Known Subinterfaces:
ExecutableFindOperation.ExecutableFind<T>
- Enclosing interface:
- ExecutableFindOperation
public static interface ExecutableFindOperation.FindWithProjection<T>
extends ExecutableFindOperation.FindWithQuery<T>, ExecutableFindOperation.FindDistinct
Result type override (Optional).
- Since:
- 2.0
- Author:
- Christoph Strobl
-
Method Summary
Modifier and TypeMethodDescriptionDefine the target type fields should be mapped to.Methods inherited from interface org.springframework.data.mongodb.core.ExecutableFindOperation.FindDistinct
distinct
Methods inherited from interface org.springframework.data.mongodb.core.ExecutableFindOperation.FindWithQuery
matching, matching, near
Methods inherited from interface org.springframework.data.mongodb.core.ExecutableFindOperation.TerminatingFind
all, count, exists, first, firstValue, one, oneValue, scroll, stream
-
Method Details
-
as
Define the target type fields should be mapped to.
Skip this step if you are anyway only interested in the original domain type.- Type Parameters:
R
- result type.- Parameters:
resultType
- must not be null.- Returns:
- new instance of
ExecutableFindOperation.FindWithProjection
. - Throws:
IllegalArgumentException
- if resultType is null.
-