Class AggregationPage<E>

java.lang.Object
com.redis.om.spring.search.stream.AggregationPage<E>
All Implemented Interfaces:
Serializable, Iterable<E>, Supplier<Stream<E>>, org.springframework.data.domain.Slice<E>, org.springframework.data.util.Streamable<E>

public class AggregationPage<E> extends Object implements org.springframework.data.domain.Slice<E>, Serializable
See Also:
  • Constructor Details

    • AggregationPage

      public AggregationPage(AggregationStream<E> aggregationStream, org.springframework.data.domain.Pageable pageable, Class<E> entityClass, com.google.gson.Gson gson, MappingRedisOMConverter mappingConverter, boolean isDocument)
    • AggregationPage

      public AggregationPage(redis.clients.jedis.search.aggr.AggregationResult aggregationResult, org.springframework.data.domain.Pageable pageable, Class<E> entityClass, com.google.gson.Gson gson, MappingRedisOMConverter mappingConverter, boolean isDocument)
  • Method Details

    • getNumber

      public int getNumber()
      Specified by:
      getNumber in interface org.springframework.data.domain.Slice<E>
    • getSize

      public int getSize()
      Specified by:
      getSize in interface org.springframework.data.domain.Slice<E>
    • getNumberOfElements

      public int getNumberOfElements()
      Specified by:
      getNumberOfElements in interface org.springframework.data.domain.Slice<E>
    • getContent

      public List<E> getContent()
      Specified by:
      getContent in interface org.springframework.data.domain.Slice<E>
    • hasContent

      public boolean hasContent()
      Specified by:
      hasContent in interface org.springframework.data.domain.Slice<E>
    • getSort

      public org.springframework.data.domain.Sort getSort()
      Specified by:
      getSort in interface org.springframework.data.domain.Slice<E>
    • isFirst

      public boolean isFirst()
      Specified by:
      isFirst in interface org.springframework.data.domain.Slice<E>
    • isLast

      public boolean isLast()
      Specified by:
      isLast in interface org.springframework.data.domain.Slice<E>
    • hasNext

      public boolean hasNext()
      Specified by:
      hasNext in interface org.springframework.data.domain.Slice<E>
    • nextPageable

      public org.springframework.data.domain.Pageable nextPageable()
      Specified by:
      nextPageable in interface org.springframework.data.domain.Slice<E>
    • map

      public <U> org.springframework.data.domain.Slice<U> map(Function<? super E,? extends U> converter)
      Specified by:
      map in interface org.springframework.data.domain.Slice<E>
      Specified by:
      map in interface org.springframework.data.util.Streamable<E>
    • iterator

      public Iterator<E> iterator()
      Specified by:
      iterator in interface Iterable<E>
    • hasPrevious

      public boolean hasPrevious()
      Specified by:
      hasPrevious in interface org.springframework.data.domain.Slice<E>
    • previousPageable

      public org.springframework.data.domain.Pageable previousPageable()
      Specified by:
      previousPageable in interface org.springframework.data.domain.Slice<E>
    • getConvertedContent

      protected <U> List<U> getConvertedContent(Function<? super E,? extends U> converter)