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:
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
ConstructorsConstructorDescriptionReactivePartTreeCassandraQuery(ReactiveCassandraQueryMethod queryMethod, ReactiveCassandraOperations operations) Create a newReactivePartTreeCassandraQueryfrom the givenReactiveCassandraQueryMethodandReactiveCassandraOperations. -
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 givenParameterAccessorprotected MappingContext<? extends CassandraPersistentEntity<?>,CassandraPersistentProperty> Returns theMappingContextused by this query to access mapping meta-data used to store (map) objects to Cassandra tables.protected StatementFactoryReturns theStatementFactoryused by this query to construct and run Cassandra CQL statements.protected PartTreegetTree()Return thePartTreebacking the query.protected booleanReturns whether the query should get a count projection applied.protected booleanReturns whether the query should get an exists projection applied.protected booleanReturn whether the query has an explicit limit set.protected booleanReturns whether the query is a modifying query.Methods inherited from class org.springframework.data.cassandra.repository.query.AbstractReactiveCassandraQuery
execute, getQueryMethod, getReactiveCassandraOperationsMethods inherited from class org.springframework.data.cassandra.repository.query.CassandraRepositoryQuerySupport
getEntityInstantiators, getQueryStatementCreator
-
Constructor Details
-
ReactivePartTreeCassandraQuery
public ReactivePartTreeCassandraQuery(ReactiveCassandraQueryMethod queryMethod, ReactiveCassandraOperations operations) Create a newReactivePartTreeCassandraQueryfrom the givenReactiveCassandraQueryMethodandReactiveCassandraOperations.- Parameters:
queryMethod- must not be null.operations- must not be null.
-
-
Method Details
-
getMappingContext
protected MappingContext<? extends CassandraPersistentEntity<?>,CassandraPersistentProperty> getMappingContext()Returns theMappingContextused by this query to access mapping meta-data used to store (map) objects to Cassandra tables.- Returns:
- the
MappingContextused by this query. - See Also:
-
getStatementFactory
Returns theStatementFactoryused by this query to construct and run Cassandra CQL statements.- Returns:
- the
StatementFactoryused by this query to construct and run Cassandra CQL statements. - See Also:
-
getTree
Return thePartTreebacking 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:AbstractReactiveCassandraQueryCreates a string query using the givenParameterAccessor- Specified by:
createQueryin classAbstractReactiveCassandraQuery- Parameters:
parameterAccessor- must not be null.
-
isCountQuery
protected boolean isCountQuery()Description copied from class:AbstractReactiveCassandraQueryReturns whether the query should get a count projection applied.- Specified by:
isCountQueryin classAbstractReactiveCassandraQuery- Returns:
- a boolean value indicating whether the query is a count projection.
-
isExistsQuery
protected boolean isExistsQuery()Description copied from class:AbstractReactiveCassandraQueryReturns whether the query should get an exists projection applied.- Specified by:
isExistsQueryin classAbstractReactiveCassandraQuery- Returns:
- a boolean value indicating whether the query is an exists projection.
-
isLimiting
protected boolean isLimiting()Description copied from class:AbstractReactiveCassandraQueryReturn whether the query has an explicit limit set.- Specified by:
isLimitingin classAbstractReactiveCassandraQuery- Returns:
- a boolean value indicating whether the query has an explicit limit set.
-
isModifyingQuery
protected boolean isModifyingQuery()Description copied from class:AbstractReactiveCassandraQueryReturns whether the query is a modifying query.- Specified by:
isModifyingQueryin classAbstractReactiveCassandraQuery- Returns:
- a boolean value indicating whether the query is a modifying query.
-