Class NearSphereOperation
java.lang.Object
org.evomaster.client.java.controller.mongo.operations.QueryOperation
org.evomaster.client.java.controller.mongo.operations.QueryOperationWithField
org.evomaster.client.java.controller.mongo.operations.AbstractProximityOperation
org.evomaster.client.java.controller.mongo.operations.NearSphereOperation
Represent $nearSphere operation.
Specifies a point for which a geospatial query returns the documents from nearest to farthest.
-
Constructor Summary
ConstructorsConstructorDescriptionNearSphereOperation(String fieldName, double longitude, double latitude, Double maxDistance, Double minDistance) Constructor for NearSphereOperation. -
Method Summary
Methods inherited from class org.evomaster.client.java.controller.mongo.operations.AbstractProximityOperation
getLatitude, getLongitude, getMaxDistance, getMinDistance, hasMaxDistance, hasMinDistanceMethods inherited from class org.evomaster.client.java.controller.mongo.operations.QueryOperationWithField
getFieldName
-
Constructor Details
-
NearSphereOperation
public NearSphereOperation(String fieldName, double longitude, double latitude, Double maxDistance, Double minDistance) Constructor for NearSphereOperation. maxDistance and minDistance are optional, so they can be null.- Parameters:
fieldName- the name of the field for the proximity operationlongitude- the longitude of the point for the proximity operationlatitude- the latitude of the point for the proximity operationmaxDistance- the maximum distance for the proximity operation (null means no maximum distance constraint)minDistance- the minimum distance for the proximity operation (null means no minimum distance constraint)
-