Uses of Class
org.springframework.data.cassandra.core.query.Query
Packages that use Query
Package
Description
Apache Cassandra core support.
Apache Cassandra specific query and update support.
Query derivation mechanism for Apache Cassandra specific repositories.
-
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.longReturns the number of rows for the given entity class applyingQuery.StatementBuilder<com.datastax.oss.driver.api.querybuilder.select.Select> StatementFactory.count(Query query, CassandraPersistentEntity<?> entity) 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.booleanRemove entities (rows)/columns from the table byQuery.StatementBuilder<com.datastax.oss.driver.api.querybuilder.delete.Delete> StatementFactory.delete(Query query, CassandraPersistentEntity<?> entity) Create a DELETE statement by mappingQuerytoDelete.StatementBuilder<com.datastax.oss.driver.api.querybuilder.delete.Delete> StatementFactory.delete(Query query, CassandraPersistentEntity<?> entity, 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.booleanDetermine whether the result forentityClassQueryyields at least one row.Define theQueryfiltering elements to delete.Set theQueryused as a filter in theSELECTstatement.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> Flux<T> Execute aSELECTquery and convert the resulting items to a stream of entities.<T> Flux<T> StatementBuilder<com.datastax.oss.driver.api.querybuilder.select.Select> StatementFactory.select(Query query, CassandraPersistentEntity<?> entity) Create a SELECT statement by mappingQuerytoSelect.StatementBuilder<com.datastax.oss.driver.api.querybuilder.select.Select> StatementFactory.select(Query query, CassandraPersistentEntity<?> entity, com.datastax.oss.driver.api.core.CqlIdentifier tableName) Create a SELECT statement by mappingQuerytoSelect.StatementBuilder<com.datastax.oss.driver.api.querybuilder.select.Select> StatementFactory.select(Query query, EntityProjection<?, ?> projection, CassandraPersistentEntity<?> entity, com.datastax.oss.driver.api.core.CqlIdentifier tableName) Create a SELECT statement by mappingQuerytoSelectconsidering projections.StatementBuilder<com.datastax.oss.driver.api.querybuilder.select.Select> StatementFactory.selectExists(Query query, EntityProjection<?, ?> projection, CassandraPersistentEntity<?> entity, com.datastax.oss.driver.api.core.CqlIdentifier tableName) Create a SELECT statement by mappingQuerytoSelectto run an exists query limiting results to one.<T> CompletableFuture<@Nullable T> Execute aSELECTquery and convert the resulting item to an entity.<T> CompletableFuture<T> <T> @Nullable TExecute aSELECTquery and convert the resulting item to an entity.<T> @Nullable T<T> Mono<T> Execute aSELECTquery and convert the resulting item to an entity.<T> 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> Execute aSELECTquery with paging and convert the result set to aSliceof entities.<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.booleanUpdate the queried entities and return true if the update was applied.StatementBuilder<com.datastax.oss.driver.api.querybuilder.update.Update> StatementFactory.update(Query query, Update update, CassandraPersistentEntity<?> entity) -
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.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(com.datastax.oss.driver.api.core.cql.PagingState pagingState) Set thepaging stateto skip rows.Query.pagingState(ByteBuffer pagingState) Set thepaging stateto skip rows.Query.pagingState(CassandraScrollPosition scrollPosition) 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.static QueryStatic factory method to create aQueryfor the given column selection.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. -
Uses of Query in org.springframework.data.cassandra.repository.query
Subclasses with type arguments of type Query in org.springframework.data.cassandra.repository.queryModifier and TypeClassDescriptionclassCustom query creator to create Cassandra criteria.Methods in org.springframework.data.cassandra.repository.query that return Query