Class NearSelector
java.lang.Object
org.evomaster.client.java.controller.mongo.selectors.QuerySelector
org.evomaster.client.java.controller.mongo.selectors.NearSphereSelector
org.evomaster.client.java.controller.mongo.selectors.NearSelector
Parses
$near queries using either legacy coordinate pairs or GeoJSON points.-
Field Summary
Fields inherited from class org.evomaster.client.java.controller.mongo.selectors.NearSphereSelector
EARTH_RADIUS_IN_METERS -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected doubleconvertLegacyDistance(double distance) protected AbstractProximityOperationcreateOperation(String fieldName, double longitude, double latitude, Double maxDistance, Double minDistance, boolean legacyCoordinates) protected Stringoperator()The operator a query must have to be considered as an instance of the corresponding operation.Methods inherited from class org.evomaster.client.java.controller.mongo.selectors.NearSphereSelector
extractOperator, getOperation, parseValueMethods inherited from class org.evomaster.client.java.controller.mongo.selectors.QuerySelector
hasTheExpectedOperator, isUniqueEntry
-
Constructor Details
-
NearSelector
public NearSelector()
-
-
Method Details
-
operator
Description copied from class:QuerySelectorThe operator a query must have to be considered as an instance of the corresponding operation.- Overrides:
operatorin classNearSphereSelector
-
convertLegacyDistance
protected double convertLegacyDistance(double distance) - Overrides:
convertLegacyDistancein classNearSphereSelector
-
createOperation
protected AbstractProximityOperation createOperation(String fieldName, double longitude, double latitude, Double maxDistance, Double minDistance, boolean legacyCoordinates) - Overrides:
createOperationin classNearSphereSelector
-