Interface ExecutableFindByQueryOperation.FindByQueryWithDistinct<T>
- Type Parameters:
T
- the entity type to use for the results.
- All Superinterfaces:
ExecutableFindByQueryOperation.FindByQueryConsistentWith<T>
,ExecutableFindByQueryOperation.FindByQueryInCollection<T>
,ExecutableFindByQueryOperation.FindByQueryInScope<T>
,ExecutableFindByQueryOperation.FindByQueryWithConsistency<T>
,ExecutableFindByQueryOperation.FindByQueryWithOptions<T>
,ExecutableFindByQueryOperation.FindByQueryWithProjecting<T>
,ExecutableFindByQueryOperation.FindByQueryWithProjection<T>
,ExecutableFindByQueryOperation.FindByQueryWithQuery<T>
,ExecutableFindByQueryOperation.TerminatingFindByQuery<T>
,InCollection<T>
,InScope<T>
,OneAndAll<T>
,WithConsistency<T>
,WithDistinct<T>
,WithQuery<T>
,WithQueryOptions<T>
- All Known Subinterfaces:
ExecutableFindByQueryOperation.ExecutableFindByQuery<T>
- Enclosing interface:
- ExecutableFindByQueryOperation
public static interface ExecutableFindByQueryOperation.FindByQueryWithDistinct<T>
extends ExecutableFindByQueryOperation.FindByQueryWithProjecting<T>, WithDistinct<T>
Fluent method to specify DISTINCT fields
-
Method Summary
Modifier and TypeMethodDescriptionFinds the distinct values for a specified field across a single collectionMethods inherited from interface org.springframework.data.couchbase.core.ExecutableFindByQueryOperation.FindByQueryConsistentWith
consistentWith
Methods inherited from interface org.springframework.data.couchbase.core.ExecutableFindByQueryOperation.FindByQueryInCollection
inCollection
Methods inherited from interface org.springframework.data.couchbase.core.ExecutableFindByQueryOperation.FindByQueryInScope
inScope
Methods inherited from interface org.springframework.data.couchbase.core.ExecutableFindByQueryOperation.FindByQueryWithConsistency
withConsistency
Methods inherited from interface org.springframework.data.couchbase.core.ExecutableFindByQueryOperation.FindByQueryWithOptions
withOptions
Methods inherited from interface org.springframework.data.couchbase.core.ExecutableFindByQueryOperation.FindByQueryWithProjecting
project
Methods inherited from interface org.springframework.data.couchbase.core.ExecutableFindByQueryOperation.FindByQueryWithProjection
as
Methods inherited from interface org.springframework.data.couchbase.core.ExecutableFindByQueryOperation.FindByQueryWithQuery
matching, matching
Methods inherited from interface org.springframework.data.couchbase.core.ExecutableFindByQueryOperation.TerminatingFindByQuery
all, count, exists, first, firstValue, one, oneValue, stream
-
Method Details
-
distinct
Finds the distinct values for a specified field across a single collection- Specified by:
distinct
in interfaceWithDistinct<T>
- Parameters:
distinctFields
- name of the field. Must not be null.- Returns:
- new instance of
ExecutableFindByQueryOperation.ExecutableFindByQuery
. - Throws:
IllegalArgumentException
- if field is null.
-