public interface SpatialWithinPredicateFieldSetContext extends MultiFieldPredicateFieldSetContext<SpatialWithinPredicateFieldSetContext>
| Modifier and Type | Method and Description |
|---|---|
default SearchPredicateTerminalContext |
boundingBox(double topLeftLatitude,
double topLeftLongitude,
double bottomRightLatitude,
double bottomRightLongitude)
Require at least one of the targeted fields to point to a location within the given box (~rectangle).
|
SearchPredicateTerminalContext |
boundingBox(GeoBoundingBox boundingBox)
Require at least one of the targeted fields to point to a location within the given box (~rectangle).
|
default SearchPredicateTerminalContext |
circle(double latitude,
double longitude,
double radiusInMeters)
Require at least one of the targeted fields to point to a location within the given circle,
i.e.
|
default SearchPredicateTerminalContext |
circle(double latitude,
double longitude,
double radius,
DistanceUnit unit)
Require at least one of the targeted fields to point to a location within the given circle,
i.e.
|
default SearchPredicateTerminalContext |
circle(GeoPoint center,
double radiusInMeters)
Require at least one of the targeted fields to point to a location within the given circle,
i.e.
|
SearchPredicateTerminalContext |
circle(GeoPoint center,
double radius,
DistanceUnit unit)
Require at least one of the targeted fields to point to a location within the given circle,
i.e.
|
default SpatialWithinPredicateFieldSetContext |
orField(String absoluteFieldPath)
Target the given field in the "within" predicate,
as an alternative to the already-targeted fields.
|
SpatialWithinPredicateFieldSetContext |
orFields(String... absoluteFieldPaths)
Target the given fields in the "within" predicate,
as an alternative to the already-targeted fields.
|
SearchPredicateTerminalContext |
polygon(GeoPolygon polygon)
Require at least one of the targeted fields to point to a location within the given polygon.
|
boostedTodefault SpatialWithinPredicateFieldSetContext orField(String absoluteFieldPath)
See SpatialWithinPredicateContext.onField(String) for more information on targeted fields.
absoluteFieldPath - The absolute path (from the document root) of the targeted field.this, for method chaining.SpatialWithinPredicateContext.onField(String)SpatialWithinPredicateFieldSetContext orFields(String... absoluteFieldPaths)
See SpatialWithinPredicateContext.onFields(String...) for more information on targeted fields.
absoluteFieldPaths - The absolute paths (from the document root) of the targeted fields.this, for method chaining.SpatialWithinPredicateContext.onFields(String...)SearchPredicateTerminalContext circle(GeoPoint center, double radius, DistanceUnit unit)
center - The center of the bounding circle.radius - The radius of the bounding circle, in the unit defined by parameter unit.unit - The unit used for the radius.default SearchPredicateTerminalContext circle(GeoPoint center, double radiusInMeters)
center - The center of the bounding circle.radiusInMeters - The radius of the bounding circle, in meters.default SearchPredicateTerminalContext circle(double latitude, double longitude, double radius, DistanceUnit unit)
latitude - The latitude of the center of the bounding circle.longitude - The longitude of the center of the bounding circle.radius - The radius of the bounding circle, in the unit defined by parameter unit.unit - The unit used for the radius.default SearchPredicateTerminalContext circle(double latitude, double longitude, double radiusInMeters)
latitude - The latitude of the center of the bounding circle.longitude - The longitude of the center of the bounding circle.radiusInMeters - The radius of the bounding circle, in meters.SearchPredicateTerminalContext polygon(GeoPolygon polygon)
polygon - The bounding polygon.SearchPredicateTerminalContext boundingBox(GeoBoundingBox boundingBox)
boundingBox - The bounding box.default SearchPredicateTerminalContext boundingBox(double topLeftLatitude, double topLeftLongitude, double bottomRightLatitude, double bottomRightLongitude)
topLeftLatitude - The latitude of the top-left corner of the box.topLeftLongitude - The longitude of the top-left corner of the box.bottomRightLatitude - The latitude of the bottom-right corner of the box.bottomRightLongitude - The longitude of the bottom-right corner of the box.Copyright © 2006-2019 Red Hat, Inc. and others. Licensed under the GNU Lesser General Public License (LGPL), version 2.1 or later.