Package | Description |
---|---|
com.allanbank.mongodb.builder |
Provides domain classes and builders for queries and the common MongoDB commands.
|
Modifier and Type | Method and Description |
---|---|
static AggregationGeoNear.Builder |
AggregationGeoNear.builder()
Creates a new builder for an
AggregationGeoNear . |
AggregationGeoNear.Builder |
AggregationGeoNear.Builder.distanceField(String distanceField)
Sets the name of the field to place the distance from the source
location . |
AggregationGeoNear.Builder |
AggregationGeoNear.Builder.distanceMultiplier(double distanceMultiplier)
Sets the distance multiplier to use in the
$geoNear . |
AggregationGeoNear.Builder |
AggregationGeoNear.Builder.limit(long limit)
Sets the maximum number of documents to return.
|
AggregationGeoNear.Builder |
AggregationGeoNear.Builder.location(Point2D location)
Sets the location to find documents near.
|
AggregationGeoNear.Builder |
AggregationGeoNear.Builder.locationField(String locationField)
Sets the name of the field to place the location information from the
document.
|
AggregationGeoNear.Builder |
AggregationGeoNear.Builder.maxDistance(double maxDistance)
Sets the maximum distance to return documents from the specified
location.
|
AggregationGeoNear.Builder |
AggregationGeoNear.Builder.query(DocumentAssignable query)
Sets the optional query for further refining the documents to add to
the pipeline.
|
AggregationGeoNear.Builder |
AggregationGeoNear.Builder.reset()
Resets the builder back to its initial state for reuse.
|
AggregationGeoNear.Builder |
AggregationGeoNear.Builder.setDistanceField(String distanceField)
Sets the name of the field to place the distance from the source
location . |
AggregationGeoNear.Builder |
AggregationGeoNear.Builder.setDistanceMultiplier(double distanceMultiplier)
Sets the distance multiplier to use in the
$geoNear . |
AggregationGeoNear.Builder |
AggregationGeoNear.Builder.setLimit(long limit)
Sets the maximum number of documents to return.
|
AggregationGeoNear.Builder |
AggregationGeoNear.Builder.setLocation(Point2D location)
Sets the location to find documents near.
|
AggregationGeoNear.Builder |
AggregationGeoNear.Builder.setLocationField(String locationField)
Sets the name of the field to place the location information from the
document.
|
AggregationGeoNear.Builder |
AggregationGeoNear.Builder.setMaxDistance(double maxDistance)
Sets the maximum distance to return documents from the specified
location.
|
AggregationGeoNear.Builder |
AggregationGeoNear.Builder.setQuery(DocumentAssignable query)
Sets the optional query for further refining the documents to add to
the pipeline.
|
AggregationGeoNear.Builder |
AggregationGeoNear.Builder.setSpherical(boolean spherical)
Sets if (true) the
$geoNear should compute distances using
spherical coordinates instead of planar coordinates. |
AggregationGeoNear.Builder |
AggregationGeoNear.Builder.setUniqueDocs(boolean uniqueDocs)
Sets if (true) the
$geoNear should only return documents
once. |
AggregationGeoNear.Builder |
AggregationGeoNear.Builder.spherical()
Sets the
$geoNear to compute distances using spherical
coordinates instead of planar coordinates. |
AggregationGeoNear.Builder |
AggregationGeoNear.Builder.spherical(boolean spherical)
Sets if (true) the
$geoNear should compute distances using
spherical coordinates instead of planar coordinates. |
AggregationGeoNear.Builder |
AggregationGeoNear.Builder.uniqueDocs(boolean uniqueDocs)
Sets if (true) the
$geoNear should only return documents
once. |
Modifier and Type | Method and Description |
---|---|
Aggregate.Builder |
Aggregate.Builder.geoNear(AggregationGeoNear.Builder geoNear)
Adds a $geoNear operation to the pipeline to select
documents for the aggregation pipeline based on their relative
location to a set point.
|
Constructor and Description |
---|
AggregationGeoNear(AggregationGeoNear.Builder builder)
Creates a new AggregationGeoNear.
|
Copyright © 2011–2014 Allanbank Consulting, Inc.. All rights reserved.