net.ravendb.client.documents.queries.spatial.CircleCriteria Maven / Gradle / Ivy
package net.ravendb.client.documents.queries.spatial;
import net.ravendb.client.documents.indexes.spatial.SpatialRelation;
import net.ravendb.client.documents.indexes.spatial.SpatialUnits;
import net.ravendb.client.documents.session.tokens.ShapeToken;
import java.util.function.Function;
public class CircleCriteria extends SpatialCriteria {
private final double _radius;
private final double _latitude;
private final double _longitude;
private final SpatialUnits _radiusUnits;
public CircleCriteria(double radius, double latitude, double longitude, SpatialUnits radiusUnits, SpatialRelation relation, double distErrorPercent) {
super(relation, distErrorPercent);
_radius = radius;
_latitude = latitude;
_longitude = longitude;
_radiusUnits = radiusUnits;
}
@Override
protected ShapeToken getShapeToken(Function
© 2015 - 2024 Weber Informatics LLC | Privacy Policy