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

    Constructors
    Constructor
    Description
    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(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 Type
    Method
    Description
    all()
     
    <R1> org.springframework.data.repository.query.FluentQuery.FetchableFluentQuery<R1>
    as(Class<R1> resultType)
     
    long
     
    boolean
     
     
     
    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)
     
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods 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)
      Specified by:
      sortBy in interface org.springframework.data.repository.query.FluentQuery<T>
      Specified by:
      sortBy in interface org.springframework.data.repository.query.FluentQuery.FetchableFluentQuery<T>
    • as

      public <R1> org.springframework.data.repository.query.FluentQuery.FetchableFluentQuery<R1> as(Class<R1> resultType)
      Specified by:
      as in interface org.springframework.data.repository.query.FluentQuery<T>
      Specified by:
      as in interface org.springframework.data.repository.query.FluentQuery.FetchableFluentQuery<T>
    • project

      public org.springframework.data.repository.query.FluentQuery.FetchableFluentQuery<R> project(Collection<String> properties)
      Specified by:
      project in interface org.springframework.data.repository.query.FluentQuery<T>
      Specified by:
      project in interface org.springframework.data.repository.query.FluentQuery.FetchableFluentQuery<T>
    • oneValue

      @Nullable public R oneValue()
      Specified by:
      oneValue in interface org.springframework.data.repository.query.FluentQuery.FetchableFluentQuery<T>
    • firstValue

      @Nullable public R firstValue()
      Specified by:
      firstValue in interface org.springframework.data.repository.query.FluentQuery.FetchableFluentQuery<T>
    • all

      public List<R> all()
      Specified by:
      all in interface org.springframework.data.repository.query.FluentQuery.FetchableFluentQuery<T>
    • page

      public org.springframework.data.domain.Page<R> page(org.springframework.data.domain.Pageable pageable)
      Specified by:
      page in interface org.springframework.data.repository.query.FluentQuery.FetchableFluentQuery<T>
    • stream

      public Stream<R> stream()
      Specified by:
      stream in interface org.springframework.data.repository.query.FluentQuery.FetchableFluentQuery<T>
    • count

      public long count()
      Specified by:
      count in interface org.springframework.data.repository.query.FluentQuery.FetchableFluentQuery<T>
    • exists

      public boolean exists()
      Specified by:
      exists in interface org.springframework.data.repository.query.FluentQuery.FetchableFluentQuery<T>