CosmosPageImpl<T> Class

  • java.lang.Object
    • org.springframework.data.domain.Chunk
      • org.springframework.data.domain.PageImpl
        • com.azure.spring.data.cosmos.core.query.CosmosPageImpl<T>

Type Parameters

T

the type of which the CosmosPageImpl consists.

public class CosmosPageImpl
extends org.springframework.data.domain.PageImpl<T>

CosmosPageImpl implementation.

Constructor Summary

Constructor Description
CosmosPageImpl(List<T> content, Pageable pageable, long total)

Constructor of CosmosPageImpl.

Method Summary

Modifier and Type Method and Description
boolean equals(Object o)
long getTotalElements()
int getTotalPages()
boolean hasNext()
int hashCode()
boolean isLast()

Methods inherited from java.lang.Object

Methods inherited from org.springframework.data.domain.Chunk

org.springframework.data.domain.Chunk.<U>getConvertedContent(java.util.function.Function< org.springframework.data.domain.Chunk.getContent org.springframework.data.domain.Chunk.getNumber org.springframework.data.domain.Chunk.getNumberOfElements org.springframework.data.domain.Chunk.getPageable org.springframework.data.domain.Chunk.getSize org.springframework.data.domain.Chunk.getSort org.springframework.data.domain.Chunk.hasContent org.springframework.data.domain.Chunk.hasPrevious org.springframework.data.domain.Chunk.isFirst org.springframework.data.domain.Chunk.iterator org.springframework.data.domain.Chunk.nextPageable org.springframework.data.domain.Chunk.previousPageable

Methods inherited from org.springframework.data.domain.PageImpl

org.springframework.data.domain.PageImpl.<U>map(java.util.function.Function< org.springframework.data.domain.PageImpl.equals org.springframework.data.domain.PageImpl.getTotalElements org.springframework.data.domain.PageImpl.getTotalPages org.springframework.data.domain.PageImpl.hasNext org.springframework.data.domain.PageImpl.hashCode org.springframework.data.domain.PageImpl.isLast org.springframework.data.domain.PageImpl.toString

Constructor Details

CosmosPageImpl

public CosmosPageImpl(List content, Pageable pageable, long total)

Constructor of CosmosPageImpl.

Parameters:

content - the content of this page, must not be null.
pageable - the paging information, must not be null.
total - amount of items available. The total might be adapted considering the length of the content given, if it is going to be the content of the last page. This is in place to mitigate inconsistencies.

Method Details

equals

public boolean equals(Object o)

Overrides:

CosmosPageImpl<T>.equals(Object o)

Parameters:

o

getTotalElements

public long getTotalElements()

Overrides:

CosmosPageImpl<T>.getTotalElements()

getTotalPages

public int getTotalPages()

Overrides:

CosmosPageImpl<T>.getTotalPages()

hasNext

public boolean hasNext()

Overrides:

CosmosPageImpl<T>.hasNext()

hashCode

public int hashCode()

Overrides:

CosmosPageImpl<T>.hashCode()

isLast

public boolean isLast()

Overrides:

CosmosPageImpl<T>.isLast()

Applies to