|
Spring Data Document | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.springframework.data.domain.PageImpl<GeoResult<T>>
org.springframework.data.mongodb.core.geo.GeoPage<T>
public class GeoPage<T>
Custom Page to carry the average distance retrieved from the GeoResults the GeoPage is set up
from.
| Constructor Summary | |
|---|---|
GeoPage(GeoResults<T> results)
Creates a new GeoPage from the given GeoResults. |
|
GeoPage(GeoResults<T> results,
org.springframework.data.domain.Pageable pageable,
long total)
Creates a new GeoPage from the given GeoResults, Pageable and total. |
|
| Method Summary | |
|---|---|
Distance |
getAverageDistance()
Returns the average distance of the underlying results. |
| Methods inherited from class org.springframework.data.domain.PageImpl |
|---|
equals, getContent, getNumber, getNumberOfElements, getSize, getSort, getTotalElements, getTotalPages, hasContent, hashCode, hasNextPage, hasPreviousPage, isFirstPage, isLastPage, iterator, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public GeoPage(GeoResults<T> results)
GeoPage from the given GeoResults.
content - must not be null.
public GeoPage(GeoResults<T> results,
org.springframework.data.domain.Pageable pageable,
long total)
GeoPage from the given GeoResults, Pageable and total.
results - must not be null.pageable - must not be null.total - | Method Detail |
|---|
public Distance getAverageDistance()
|
Spring Data Document | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||