Interface ExecutableSelectOperation.UntypedSelect
- All Superinterfaces:
ExecutableSelectOperation.TerminatingProjections
- Enclosing interface:
ExecutableSelectOperation
public static interface ExecutableSelectOperation.UntypedSelect
extends ExecutableSelectOperation.TerminatingProjections
Select query that is not yet associated with a result type.
- Since:
- 5.0
- Author:
- Mark Paluch, John Blum
-
Method Summary
Modifier and TypeMethodDescriptionDefine theresult target typethat the Cassandra Row fields should be mapped to.default <T> ExecutableSelectOperation.TerminatingResults<T> Configure amapping functionthat maps the Cassandra Row to a result type.Configure aRowMapperthat maps the Cassandra Row to a result type.Methods inherited from interface ExecutableSelectOperation.TerminatingProjections
count, exists
-
Method Details
-
as
Define theresult target typethat the Cassandra Row fields should be mapped to.- Type Parameters:
T-typeof the result.- Parameters:
resultType- result type; must not be null.- Returns:
- new instance of
ExecutableSelectOperation.TerminatingResults. - Throws:
IllegalArgumentException- ifresultTypeis null.
-
map
@Contract("_ -> new") default <T> ExecutableSelectOperation.TerminatingResults<T> map(Function<com.datastax.oss.driver.api.core.cql.Row, ? extends T> mapper) Configure amapping functionthat maps the Cassandra Row to a result type. This is a simplified variant ofmap(RowMapper).- Type Parameters:
T-typeof the result.- Parameters:
mapper- row mapping function; must not be null.- Returns:
- new instance of
ExecutableSelectOperation.TerminatingResults. - Throws:
IllegalArgumentException- ifmapperis null.- See Also:
-
map
Configure aRowMapperthat maps the Cassandra Row to a result type.- Type Parameters:
T-typeof the result.- Parameters:
mapper- the row mapper; must not be null.- Returns:
- new instance of
ExecutableSelectOperation.TerminatingResults. - Throws:
IllegalArgumentException- ifmapperis null.
-