Class NearSphereSelector
java.lang.Object
org.evomaster.client.java.controller.mongo.selectors.QuerySelector
org.evomaster.client.java.controller.mongo.selectors.NearSphereSelector
- Direct Known Subclasses:
NearSelector
{ field: { $nearSphere: [ x, y ], $maxDistance: value, $minDistance: value } }
or
{ field: { $nearSphere: {$geometry: {type: "Point", coordinates: [ longitude, latitude ]}, $maxDistance: value, $minDistance: value}}
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected doubleconvertLegacyDistance(double radians) protected AbstractProximityOperationcreateOperation(String fieldName, double longitude, double latitude, Double maxDistance, Double minDistance, boolean legacyCoordinates) protected StringextractOperator(Object query) Extracts the operator (for example $eq) from the query.getOperation(Object query) Returns the operation mapped to the selector if the query satisfy all syntax checks or null if not.protected Stringoperator()The operator a query must have to be considered as an instance of the corresponding operation.parseValue(String fieldName, Object innerDoc, boolean legacyCoordinates) Methods inherited from class org.evomaster.client.java.controller.mongo.selectors.QuerySelector
hasTheExpectedOperator, isUniqueEntry
-
Field Details
-
EARTH_RADIUS_IN_METERS
public static final int EARTH_RADIUS_IN_METERS- See Also:
-
-
Constructor Details
-
NearSphereSelector
public NearSphereSelector()
-
-
Method Details
-
getOperation
Description copied from class:QuerySelectorReturns the operation mapped to the selector if the query satisfy all syntax checks or null if not.- Specified by:
getOperationin classQuerySelector
-
extractOperator
Description copied from class:QuerySelectorExtracts the operator (for example $eq) from the query.- Specified by:
extractOperatorin classQuerySelector
-
operator
Description copied from class:QuerySelectorThe operator a query must have to be considered as an instance of the corresponding operation.- Specified by:
operatorin classQuerySelector
-
parseValue
-
convertLegacyDistance
protected double convertLegacyDistance(double radians) -
createOperation
protected AbstractProximityOperation createOperation(String fieldName, double longitude, double latitude, Double maxDistance, Double minDistance, boolean legacyCoordinates)
-