Class ReactivePartTreeCassandraQuery
java.lang.Object
org.springframework.data.cassandra.repository.query.CassandraRepositoryQuerySupport
org.springframework.data.cassandra.repository.query.AbstractReactiveCassandraQuery
org.springframework.data.cassandra.repository.query.ReactivePartTreeCassandraQuery
- All Implemented Interfaces:
org.springframework.data.repository.query.RepositoryQuery
Reactive PartTree
RepositoryQuery
implementation for Cassandra.- Since:
- 2.0
- Author:
- Mark Paluch
- See Also:
-
Field Summary
Fields inherited from class org.springframework.data.cassandra.repository.query.CassandraRepositoryQuerySupport
log
-
Constructor Summary
ConstructorDescriptionReactivePartTreeCassandraQuery
(ReactiveCassandraQueryMethod queryMethod, ReactiveCassandraOperations operations) Create a newReactivePartTreeCassandraQuery
from the givenReactiveCassandraQueryMethod
andReactiveCassandraOperations
. -
Method Summary
Modifier and TypeMethodDescriptionprotected reactor.core.publisher.Mono<com.datastax.oss.driver.api.core.cql.SimpleStatement>
createQuery
(CassandraParameterAccessor parameterAccessor) Creates a string query using the givenParameterAccessor
protected org.springframework.data.mapping.context.MappingContext<? extends CassandraPersistentEntity<?>,
CassandraPersistentProperty> Returns theMappingContext
used by this query to access mapping meta-data used to store (map) objects to Cassandra tables.protected StatementFactory
Returns theStatementFactory
used by this query to construct and run Cassandra CQL statements.protected org.springframework.data.repository.query.parser.PartTree
getTree()
Return thePartTree
backing the query.protected boolean
Returns whether the query should get a count projection applied.protected boolean
Returns whether the query should get an exists projection applied.protected boolean
Return whether the query has an explicit limit set.protected boolean
Returns whether the query is a modifying query.Methods inherited from class org.springframework.data.cassandra.repository.query.AbstractReactiveCassandraQuery
execute, getQueryMethod, getReactiveCassandraOperations
Methods inherited from class org.springframework.data.cassandra.repository.query.CassandraRepositoryQuerySupport
getEntityInstantiators, getQueryStatementCreator
-
Constructor Details
-
ReactivePartTreeCassandraQuery
public ReactivePartTreeCassandraQuery(ReactiveCassandraQueryMethod queryMethod, ReactiveCassandraOperations operations) Create a newReactivePartTreeCassandraQuery
from the givenReactiveCassandraQueryMethod
andReactiveCassandraOperations
.- Parameters:
queryMethod
- must not be null.operations
- must not be null.
-
-
Method Details
-
getMappingContext
protected org.springframework.data.mapping.context.MappingContext<? extends CassandraPersistentEntity<?>,CassandraPersistentProperty> getMappingContext()Returns theMappingContext
used by this query to access mapping meta-data used to store (map) objects to Cassandra tables.- Overrides:
getMappingContext
in classCassandraRepositoryQuerySupport
- Returns:
- the
MappingContext
used by this query. - See Also:
-
getStatementFactory
Returns theStatementFactory
used by this query to construct and run Cassandra CQL statements.- Returns:
- the
StatementFactory
used by this query to construct and run Cassandra CQL statements. - See Also:
-
getTree
protected org.springframework.data.repository.query.parser.PartTree getTree()Return thePartTree
backing the query.- Returns:
- the tree
-
createQuery
protected reactor.core.publisher.Mono<com.datastax.oss.driver.api.core.cql.SimpleStatement> createQuery(CassandraParameterAccessor parameterAccessor) Description copied from class:AbstractReactiveCassandraQuery
Creates a string query using the givenParameterAccessor
- Specified by:
createQuery
in classAbstractReactiveCassandraQuery
- Parameters:
parameterAccessor
- must not be null.
-
isCountQuery
protected boolean isCountQuery()Description copied from class:AbstractReactiveCassandraQuery
Returns whether the query should get a count projection applied.- Specified by:
isCountQuery
in classAbstractReactiveCassandraQuery
- Returns:
- a boolean value indicating whether the query is a count projection.
-
isExistsQuery
protected boolean isExistsQuery()Description copied from class:AbstractReactiveCassandraQuery
Returns whether the query should get an exists projection applied.- Specified by:
isExistsQuery
in classAbstractReactiveCassandraQuery
- Returns:
- a boolean value indicating whether the query is an exists projection.
-
isLimiting
protected boolean isLimiting()Description copied from class:AbstractReactiveCassandraQuery
Return whether the query has an explicit limit set.- Specified by:
isLimiting
in classAbstractReactiveCassandraQuery
- Returns:
- a boolean value indicating whether the query has an explicit limit set.
-
isModifyingQuery
protected boolean isModifyingQuery()Description copied from class:AbstractReactiveCassandraQuery
Returns whether the query is a modifying query.- Specified by:
isModifyingQuery
in classAbstractReactiveCassandraQuery
- Returns:
- a boolean value indicating whether the query is a modifying query.
-