public interface ReactiveFindOperation
ReactiveFindOperation allows creation and execution of reactive MongoDB find operations in a fluent API
style. Query provided via matching into the
MongoDB specific representation. By default, the originating domainType is also used for mapping back the
result from the Document. However, it is possible to define an different returnType via
as to mapping the result.Document. Using inCollection allows to override the
collection name for the execution.
query(Human.class)
.inCollection("star-wars")
.as(Jedi.class)
.matching(where("firstname").is("luke"))
.all();
| Modifier and Type | Interface and Description |
|---|---|
static interface |
ReactiveFindOperation.DistinctWithProjection
Result type override.
|
static interface |
ReactiveFindOperation.DistinctWithQuery<T>
Result restrictions.
|
static interface |
ReactiveFindOperation.FindDistinct
Distinct Find support.
|
static interface |
ReactiveFindOperation.FindWithCollection<T>
Collection override (optional).
|
static interface |
ReactiveFindOperation.FindWithProjection<T>
Result type override (optional).
|
static interface |
ReactiveFindOperation.FindWithQuery<T>
Provide a
Query override (optional). |
static interface |
ReactiveFindOperation.ReactiveFind<T>
ReactiveFindOperation.ReactiveFind provides methods for constructing lookup operations in a fluent way. |
static interface |
ReactiveFindOperation.TerminatingDistinct<T>
Terminating distinct find operations.
|
static interface |
ReactiveFindOperation.TerminatingFind<T>
Compose find execution by calling one of the terminating methods.
|
static interface |
ReactiveFindOperation.TerminatingFindNear<T>
Compose geonear execution by calling one of the terminating methods.
|
| Modifier and Type | Method and Description |
|---|---|
<T> ReactiveFindOperation.ReactiveFind<T> |
query(Class<T> domainType)
Start creating a find operation for the given domainType.
|
<T> ReactiveFindOperation.ReactiveFind<T> query(Class<T> domainType)
domainType - must not be null.ReactiveFindOperation.ReactiveFind. Never null.IllegalArgumentException - if domainType is null.Copyright © 2011–2022 Pivotal Software, Inc.. All rights reserved.