public interface ReactiveSelectOperation
ReactiveSelectOperation
interface allows creation and execution of Cassandra SELECT
operations in
a fluent API style.
The starting domainType is used for mapping the Query
provided via matching
int the
Cassandra specific representation. By default, the originating domainType is also used for mapping back
the result from the com.datastax.driver.core.Row
. However, it is possible to define an different
returnType via as
to mapping the result.
By default, the table to operate on is derived from the initial domainType and can be defined there via
the Table
annotation. Using inTable
allows a
developer to override the table name for the execution.
query(Human.class)
.inTable("star_wars")
.as(Jedi.class)
.matching(query(where("firstname").is("luke")))
.all();
Query
Modifier and Type | Interface and Description |
---|---|
static interface |
ReactiveSelectOperation.ReactiveSelect<T>
The
ReactiveSelectOperation.ReactiveSelect interface provides methods for constructing SELECT operations in a fluent way. |
static interface |
ReactiveSelectOperation.SelectWithProjection<T>
Result type override (optional).
|
static interface |
ReactiveSelectOperation.SelectWithQuery<T>
Define a
Query used as the filter for the SELECT . |
static interface |
ReactiveSelectOperation.SelectWithTable<T>
Table override (optional).
|
static interface |
ReactiveSelectOperation.TerminatingSelect<T>
Trigger
SELECT execution by calling one of the terminating methods. |
Modifier and Type | Method and Description |
---|---|
<T> ReactiveSelectOperation.ReactiveSelect<T> |
query(Class<T> domainType)
Begin creating a
SELECT operation for the given domainType . |
<T> ReactiveSelectOperation.ReactiveSelect<T> query(Class<T> domainType)
SELECT
operation for the given domainType
.T
- type
of the application domain object.domainType
- type
of the domain object to query; must not be null.ReactiveSelectOperation.ReactiveSelect
.IllegalArgumentException
- if domainType
is null.ReactiveSelectOperation.ReactiveSelect
Copyright © 2011–2021 Pivotal Software, Inc.. All rights reserved.