Package org.springframework.data.mongodb.core.query

Examples of org.springframework.data.mongodb.core.query.NearQuery.query()


      Point nearLocation = accessor.getGeoNearLocation();
      NearQuery nearQuery = NearQuery.near(nearLocation);

      if (query != null) {
        nearQuery.query(query);
      }

      Distance maxDistance = accessor.getMaxDistance();
      if (maxDistance != null) {
        nearQuery.maxDistance(maxDistance).in(maxDistance.getMetric());
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.