Uses of Class
org.springframework.data.cassandra.core.query.Query
Packages that use Query
Package
Description
Apache Cassandra core support.
Apache Cassandra legacy asynchronous support for easier migration.
Apache Cassandra specific query and update support.
-
Uses of Query in org.springframework.data.cassandra.core
Methods in org.springframework.data.cassandra.core with parameters of type QueryModifier and TypeMethodDescriptionReturns the number of rows for the given entity class applyingQuery.longReturns the number of rows for the given entity class applyingQuery.longreactor.core.publisher.Mono<Long>Returns the number of rows for the given entity class applyingQuery.reactor.core.publisher.Mono<Long>StatementBuilder<com.datastax.oss.driver.api.querybuilder.select.Select>StatementFactory.count(Query query, CassandraPersistentEntity<?> persistentEntity) Create a COUNT statement by mappingQuerytoSelect.StatementBuilder<com.datastax.oss.driver.api.querybuilder.select.Select>StatementFactory.count(Query query, CassandraPersistentEntity<?> entity, com.datastax.oss.driver.api.core.CqlIdentifier tableName) Create a COUNT statement by mappingQuerytoSelect.Remove entities (rows)/columns from the table byQuery.booleanRemove entities (rows)/columns from the table byQuery.booleanreactor.core.publisher.Mono<Boolean>Remove entities (rows)/columns from the table byQuery.reactor.core.publisher.Mono<Boolean>StatementBuilder<com.datastax.oss.driver.api.querybuilder.delete.Delete>StatementFactory.delete(Query query, CassandraPersistentEntity<?> persistentEntity) Create a DELETE statement by mappingQuerytoDelete.StatementBuilder<com.datastax.oss.driver.api.querybuilder.delete.Delete>StatementFactory.delete(Query query, CassandraPersistentEntity<?> persistentEntity, com.datastax.oss.driver.api.core.CqlIdentifier tableName) Create a DELETE statement by mappingQuerytoDelete.Determine whether the result forentityClassQueryyields at least one row.booleanDetermine whether the result forentityClassQueryyields at least one row.booleanreactor.core.publisher.Mono<Boolean>Determine whether the result forentityClassQueryyields at least one row.reactor.core.publisher.Mono<Boolean>Define theQueryfiltering elements to delete.Set theQueryto use as a filter.Filter rows with the givenQuery.Define theQueryused to filter elements in the delete.Set theQueryused as a filter in theSELECTstatement.Filter rows to update by the givenQuery.<T> CompletableFuture<List<T>>Execute aSELECTquery and convert the resulting items to aListof entities.<T> CompletableFuture<Void>Execute aSELECTquery and convert the resulting items notifyingConsumerfor each entity.<T> CompletableFuture<List<T>><T> CompletableFuture<Void><T> List<T>Execute aSELECTquery and convert the resulting items to aListof entities.<T> List<T><T> reactor.core.publisher.Flux<T>Execute aSELECTquery and convert the resulting items to a stream of entities.<T> reactor.core.publisher.Flux<T>StatementBuilder<com.datastax.oss.driver.api.querybuilder.select.Select>StatementFactory.select(Query query, CassandraPersistentEntity<?> persistentEntity) Create a SELECT statement by mappingQuerytoSelect.StatementBuilder<com.datastax.oss.driver.api.querybuilder.select.Select>StatementFactory.select(Query query, CassandraPersistentEntity<?> persistentEntity, com.datastax.oss.driver.api.core.CqlIdentifier tableName) Create a SELECT statement by mappingQuerytoSelect.<T> CompletableFuture<T>Execute aSELECTquery and convert the resulting item to an entity.<T> CompletableFuture<T><T> TExecute aSELECTquery and convert the resulting item to an entity.<T> T<T> reactor.core.publisher.Mono<T>Execute aSELECTquery and convert the resulting item to an entity.<T> reactor.core.publisher.Mono<T><T> CompletableFuture<Slice<T>>Execute aSELECTquery with paging and convert the result set to aSliceof entities.<T> CompletableFuture<Slice<T>><T> Slice<T>Execute aSELECTquery with paging and convert the result set to aSliceof entities.<T> Slice<T><T> reactor.core.publisher.Mono<Slice<T>>Execute aSELECTquery with paging and convert the result set to aSliceof entities.<T> reactor.core.publisher.Mono<Slice<T>><T> Stream<T>Execute aSELECTquery and convert the resulting items to aIteratorof entities.<T> Stream<T>Update the queried entities and return true if the update was applied.booleanUpdate the queried entities and return true if the update was applied.booleanreactor.core.publisher.Mono<Boolean>Update the queried entities and return true if the update was applied.reactor.core.publisher.Mono<Boolean>StatementBuilder<com.datastax.oss.driver.api.querybuilder.update.Update>StatementFactory.update(Query query, Update update, CassandraPersistentEntity<?> persistentEntity) -
Uses of Query in org.springframework.data.cassandra.core.legacy
Methods in org.springframework.data.cassandra.core.legacy with parameters of type QueryModifier and TypeMethodDescriptionDeprecated, for removal: This API element is subject to removal in a future version.Returns the number of rows for the given entity class applyingQuery.Deprecated, for removal: This API element is subject to removal in a future version.Deprecated, for removal: This API element is subject to removal in a future version.Remove entities (rows)/columns from the table byQuery.Deprecated, for removal: This API element is subject to removal in a future version.Deprecated, for removal: This API element is subject to removal in a future version.Determine whether the result forentityClassQueryyields at least one row.Deprecated, for removal: This API element is subject to removal in a future version.<T> ListenableFuture<List<T>>Deprecated, for removal: This API element is subject to removal in a future version.Execute aSELECTquery and convert the resulting items to aListof entities.<T> ListenableFuture<Void>Deprecated, for removal: This API element is subject to removal in a future version.Execute aSELECTquery and convert the resulting items notifyingConsumerfor each entity.<T> ListenableFuture<List<T>>Deprecated, for removal: This API element is subject to removal in a future version.<T> ListenableFuture<Void>Deprecated, for removal: This API element is subject to removal in a future version.<T> ListenableFuture<T>Deprecated, for removal: This API element is subject to removal in a future version.Execute aSELECTquery and convert the resulting item to an entity.<T> ListenableFuture<T>Deprecated, for removal: This API element is subject to removal in a future version.<T> ListenableFuture<Slice<T>>Deprecated, for removal: This API element is subject to removal in a future version.Execute aSELECTquery with paging and convert the result set to aSliceof entities.<T> ListenableFuture<Slice<T>>Deprecated, for removal: This API element is subject to removal in a future version.Deprecated, for removal: This API element is subject to removal in a future version.Update the queried entities and return true if the update was applied.Deprecated, for removal: This API element is subject to removal in a future version. -
Uses of Query in org.springframework.data.cassandra.core.query
Methods in org.springframework.data.cassandra.core.query that return QueryModifier and TypeMethodDescriptionQuery.and(CriteriaDefinition criteriaDefinition) Add the givenCriteriaDefinitionto the currentQuery.static QueryQuery.empty()Static factory method to create an emptyQuery.Query.limit(long limit) Limit the number of returned rows tolimit.Query.pageRequest(Pageable pageable) Create aQueryinitialized with aPageRequestto fetch the first page of results or advance in paging along with sorting.Query.pagingState(ByteBuffer pagingState) Set thepaging stateto skip rows.static QueryQuery.query(Iterable<? extends CriteriaDefinition> criteriaDefinitions) Static factory method to create aQueryusing the providedCriteriaDefinition.static QueryQuery.query(CriteriaDefinition... criteriaDefinitions) Static factory method to create aQueryusing the providedCriteriaDefinition.Query.queryOptions(QueryOptions queryOptions) Set theQueryOptions.Query.withAllowFiltering()Allow filtering withthisQuery.Methods in org.springframework.data.cassandra.core.query with parameters of type QueryModifier and TypeMethodDescriptionprotected booleanQuery.querySettingsEquals(Query that) Tests whether the settings of the givenQueryare equal to this query.