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 Summary
ConstructorsConstructorDescriptionAggregationPage(AggregationStream<E> aggregationStream, org.springframework.data.domain.Pageable pageable, Class<E> entityClass, com.google.gson.Gson gson, MappingRedisOMConverter mappingConverter, boolean isDocument) 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 Summary
Modifier and TypeMethodDescriptionprotected <U> List<U>getConvertedContent(Function<? super E, ? extends U> converter) intintintgetSize()org.springframework.data.domain.SortgetSort()booleanbooleanhasNext()booleanbooleanisFirst()booleanisLast()iterator()<U> org.springframework.data.domain.Slice<U>org.springframework.data.domain.Pageableorg.springframework.data.domain.PageableMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.lang.Iterable
forEach, spliteratorMethods inherited from interface org.springframework.data.domain.Slice
getPageable, nextOrLastPageable, previousOrFirstPageableMethods inherited from interface org.springframework.data.util.Streamable
and, and, and, and, filter, flatMap, get, isEmpty, stream, toList, toSet
-
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:
getNumberin interfaceorg.springframework.data.domain.Slice<E>
-
getSize
public int getSize()- Specified by:
getSizein interfaceorg.springframework.data.domain.Slice<E>
-
getNumberOfElements
public int getNumberOfElements()- Specified by:
getNumberOfElementsin interfaceorg.springframework.data.domain.Slice<E>
-
getContent
- Specified by:
getContentin interfaceorg.springframework.data.domain.Slice<E>
-
hasContent
public boolean hasContent()- Specified by:
hasContentin interfaceorg.springframework.data.domain.Slice<E>
-
getSort
public org.springframework.data.domain.Sort getSort()- Specified by:
getSortin interfaceorg.springframework.data.domain.Slice<E>
-
isFirst
public boolean isFirst()- Specified by:
isFirstin interfaceorg.springframework.data.domain.Slice<E>
-
isLast
public boolean isLast()- Specified by:
isLastin interfaceorg.springframework.data.domain.Slice<E>
-
hasNext
public boolean hasNext()- Specified by:
hasNextin interfaceorg.springframework.data.domain.Slice<E>
-
nextPageable
public org.springframework.data.domain.Pageable nextPageable()- Specified by:
nextPageablein interfaceorg.springframework.data.domain.Slice<E>
-
map
-
iterator
-
hasPrevious
public boolean hasPrevious()- Specified by:
hasPreviousin interfaceorg.springframework.data.domain.Slice<E>
-
previousPageable
public org.springframework.data.domain.Pageable previousPageable()- Specified by:
previousPageablein interfaceorg.springframework.data.domain.Slice<E>
-
getConvertedContent
-