Class CosmosSliceImpl<T>
java.lang.Object
org.springframework.data.domain.SliceImpl<T>
com.azure.spring.data.cosmos.core.query.CosmosSliceImpl<T>
- Type Parameters:
T- the type of which the CosmosSliceImpl consists.
- All Implemented Interfaces:
Serializable,Iterable<T>,Supplier<Stream<T>>,org.springframework.data.domain.Slice<T>,org.springframework.data.util.Streamable<T>
public class CosmosSliceImpl<T>
extends org.springframework.data.domain.SliceImpl<T>
CosmosSliceImpl implementation.- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionCosmosSliceImpl(List<T> content, org.springframework.data.domain.Pageable pageable, boolean hasNext) Constructor ofCosmosSliceImpl. -
Method Summary
Modifier and TypeMethodDescriptionbooleanprotected <U> List<U> getConvertedContent(Function<? super T, ? extends U> arg0) intintorg.springframework.data.domain.PageableintgetSize()org.springframework.data.domain.SortgetSort()booleaninthashCode()booleanbooleanisFirst()booleanisLast()iterator()org.springframework.data.domain.Pageableorg.springframework.data.domain.PageableMethods inherited from class org.springframework.data.domain.SliceImpl
hasNext, map, toStringMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.lang.Iterable
forEach, spliteratorMethods inherited from interface org.springframework.data.domain.Slice
nextOrLastPageable, previousOrFirstPageableMethods inherited from interface org.springframework.data.util.Streamable
and, and, and, and, filter, flatMap, get, isEmpty, stream, toList, toSet
-
Constructor Details
-
CosmosSliceImpl
public CosmosSliceImpl(List<T> content, org.springframework.data.domain.Pageable pageable, boolean hasNext) Constructor ofCosmosSliceImpl.- Parameters:
content- the content of this page, must not be null.pageable- the paging information, must not be null.hasNext- whether the query has any more results to fetch
-
-
Method Details
-
equals
- Overrides:
equalsin classorg.springframework.data.domain.SliceImpl<T>
-
hashCode
public int hashCode()- Overrides:
hashCodein classorg.springframework.data.domain.SliceImpl<T>
-
getNumber
public int getNumber()- Specified by:
getNumberin interfaceorg.springframework.data.domain.Slice<T>
-
getSize
public int getSize()- Specified by:
getSizein interfaceorg.springframework.data.domain.Slice<T>
-
getNumberOfElements
public int getNumberOfElements()- Specified by:
getNumberOfElementsin interfaceorg.springframework.data.domain.Slice<T>
-
hasPrevious
public boolean hasPrevious()- Specified by:
hasPreviousin interfaceorg.springframework.data.domain.Slice<T>
-
isFirst
public boolean isFirst()- Specified by:
isFirstin interfaceorg.springframework.data.domain.Slice<T>
-
isLast
public boolean isLast()- Specified by:
isLastin interfaceorg.springframework.data.domain.Slice<T>
-
nextPageable
public org.springframework.data.domain.Pageable nextPageable()- Specified by:
nextPageablein interfaceorg.springframework.data.domain.Slice<T>
-
previousPageable
public org.springframework.data.domain.Pageable previousPageable()- Specified by:
previousPageablein interfaceorg.springframework.data.domain.Slice<T>
-
hasContent
public boolean hasContent()- Specified by:
hasContentin interfaceorg.springframework.data.domain.Slice<T>
-
getContent
- Specified by:
getContentin interfaceorg.springframework.data.domain.Slice<T>
-
getPageable
public org.springframework.data.domain.Pageable getPageable()- Specified by:
getPageablein interfaceorg.springframework.data.domain.Slice<T>
-
getSort
public org.springframework.data.domain.Sort getSort()- Specified by:
getSortin interfaceorg.springframework.data.domain.Slice<T>
-
iterator
-
getConvertedContent
-