Module spring.data.mongodb
Interface ExecutableFindOperation.FindDistinct
- All Known Subinterfaces:
ExecutableFindOperation.ExecutableFind<T>,ExecutableFindOperation.FindWithProjection<T>
- Enclosing interface:
- ExecutableFindOperation
public static interface ExecutableFindOperation.FindDistinct
Distinct Find support.
- Since:
- 2.1
- Author:
- Christoph Strobl
-
Method Summary
Modifier and TypeMethodDescriptionFinds the distinct values for a specified field across a singleMongoCollectionor view.
-
Method Details
-
distinct
Finds the distinct values for a specified field across a singleMongoCollectionor view.- Parameters:
field- name of the field. Must not be null.- Returns:
- new instance of
ExecutableFindOperation.TerminatingDistinct. - Throws:
IllegalArgumentException- if field is null.
-