Class RedisFluentQueryByExample<T,S extends T,R>
java.lang.Object
com.redis.om.spring.search.stream.RedisFluentQueryByExample<T,S,R>
- All Implemented Interfaces:
org.springframework.data.repository.query.FluentQuery<R>,org.springframework.data.repository.query.FluentQuery.FetchableFluentQuery<R>
public class RedisFluentQueryByExample<T,S extends T,R>
extends Object
implements org.springframework.data.repository.query.FluentQuery.FetchableFluentQuery<R>
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.springframework.data.repository.query.FluentQuery
org.springframework.data.repository.query.FluentQuery.FetchableFluentQuery<T>, org.springframework.data.repository.query.FluentQuery.ReactiveFluentQuery<T> -
Constructor Summary
ConstructorsConstructorDescriptionRedisFluentQueryByExample(org.springframework.data.domain.Example<S> example, Class<R> resultType, EntityStream entityStream, SearchOperations<String> searchOps, org.springframework.data.redis.core.mapping.RedisMappingContext mappingContext) RedisFluentQueryByExample(org.springframework.data.domain.Example<S> example, org.springframework.data.domain.Sort sort, Class<?> domainType, Class<R> resultType, EntityStream entityStream, SearchOperations<String> searchOps, SearchStream<?> searchStream, org.springframework.data.redis.core.mapping.RedisMappingContext mappingContext) RedisFluentQueryByExample(org.springframework.data.domain.Example<S> example, org.springframework.data.domain.Sort sort, Class<?> domainType, Class<R> resultType, EntityStream entityStream, SearchOperations<String> searchOps, org.springframework.data.redis.core.mapping.RedisMappingContext mappingContext) -
Method Summary
Modifier and TypeMethodDescriptionall()<R1> org.springframework.data.repository.query.FluentQuery.FetchableFluentQuery<R1> longcount()booleanexists()oneValue()org.springframework.data.domain.Page<R> page(org.springframework.data.domain.Pageable pageable) org.springframework.data.repository.query.FluentQuery.FetchableFluentQuery<R> project(Collection<String> properties) org.springframework.data.repository.query.FluentQuery.FetchableFluentQuery<R> sortBy(org.springframework.data.domain.Sort sort) stream()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.springframework.data.repository.query.FluentQuery.FetchableFluentQuery
first, limit, one, project, scroll
-
Constructor Details
-
RedisFluentQueryByExample
public RedisFluentQueryByExample(org.springframework.data.domain.Example<S> example, Class<R> resultType, EntityStream entityStream, SearchOperations<String> searchOps, org.springframework.data.redis.core.mapping.RedisMappingContext mappingContext) -
RedisFluentQueryByExample
public RedisFluentQueryByExample(org.springframework.data.domain.Example<S> example, org.springframework.data.domain.Sort sort, Class<?> domainType, Class<R> resultType, EntityStream entityStream, SearchOperations<String> searchOps, SearchStream<?> searchStream, org.springframework.data.redis.core.mapping.RedisMappingContext mappingContext) -
RedisFluentQueryByExample
public RedisFluentQueryByExample(org.springframework.data.domain.Example<S> example, org.springframework.data.domain.Sort sort, Class<?> domainType, Class<R> resultType, EntityStream entityStream, SearchOperations<String> searchOps, org.springframework.data.redis.core.mapping.RedisMappingContext mappingContext)
-
-
Method Details
-
sortBy
public org.springframework.data.repository.query.FluentQuery.FetchableFluentQuery<R> sortBy(org.springframework.data.domain.Sort sort) -
as
public <R1> org.springframework.data.repository.query.FluentQuery.FetchableFluentQuery<R1> as(Class<R1> resultType) -
project
public org.springframework.data.repository.query.FluentQuery.FetchableFluentQuery<R> project(Collection<String> properties) -
oneValue
- Specified by:
oneValuein interfaceorg.springframework.data.repository.query.FluentQuery.FetchableFluentQuery<T>
-
firstValue
- Specified by:
firstValuein interfaceorg.springframework.data.repository.query.FluentQuery.FetchableFluentQuery<T>
-
all
- Specified by:
allin interfaceorg.springframework.data.repository.query.FluentQuery.FetchableFluentQuery<T>
-
page
public org.springframework.data.domain.Page<R> page(org.springframework.data.domain.Pageable pageable) - Specified by:
pagein interfaceorg.springframework.data.repository.query.FluentQuery.FetchableFluentQuery<T>
-
stream
- Specified by:
streamin interfaceorg.springframework.data.repository.query.FluentQuery.FetchableFluentQuery<T>
-
count
public long count()- Specified by:
countin interfaceorg.springframework.data.repository.query.FluentQuery.FetchableFluentQuery<T>
-
exists
public boolean exists()- Specified by:
existsin interfaceorg.springframework.data.repository.query.FluentQuery.FetchableFluentQuery<T>
-