本文整理了Java中org.springframework.data.mongodb.core.MongoTemplate.geoNear()
方法的一些代码示例,展示了MongoTemplate.geoNear()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。MongoTemplate.geoNear()
方法的具体详情如下:
包路径:org.springframework.data.mongodb.core.MongoTemplate
类名称:MongoTemplate
方法名:geoNear
暂无
代码示例来源:origin: spring-projects/spring-data-mongodb
@Override
public <T> GeoResults<T> geoNear(NearQuery near, Class<T> domainType, String collectionName) {
return geoNear(near, domainType, collectionName, domainType);
}
代码示例来源:origin: spring-projects/spring-data-mongodb
@Override
public TerminatingFindNear<T> near(NearQuery nearQuery) {
return () -> template.geoNear(nearQuery, domainType, getCollectionName(), returnType);
}
代码示例来源:origin: spring-projects/spring-data-mongodb
@Override
public <T> GeoResults<T> geoNear(NearQuery near, Class<T> entityClass) {
return geoNear(near, entityClass, operations.determineCollectionName(entityClass));
}
代码示例来源:origin: org.springframework.data/spring-data-mongodb
@Override
public <T> GeoResults<T> geoNear(NearQuery near, Class<T> domainType, String collectionName) {
return geoNear(near, domainType, collectionName, domainType);
}
代码示例来源:origin: org.springframework.data/spring-data-mongodb
@Override
public TerminatingFindNear<T> near(NearQuery nearQuery) {
return () -> template.geoNear(nearQuery, domainType, getCollectionName(), returnType);
}
代码示例来源:origin: org.springframework.data/spring-data-mongodb
@Override
public <T> GeoResults<T> geoNear(NearQuery near, Class<T> entityClass) {
return geoNear(near, entityClass, operations.determineCollectionName(entityClass));
}
代码示例来源:origin: enilu/springboot-elm
public GeoResults<Map> near(double x, double y, String collectionName){
return mongoTemplate.geoNear(NearQuery.near(x,y),Map.class,collectionName);
}
内容来源于网络,如有侵权,请联系作者删除!