org.springframework.data.mongodb.core.MongoTemplate.geoNear()方法的使用及代码示例

x33g5p2x  于2022-01-24 转载在 其他  
字(1.8k)|赞(0)|评价(0)|浏览(155)

本文整理了Java中org.springframework.data.mongodb.core.MongoTemplate.geoNear()方法的一些代码示例,展示了MongoTemplate.geoNear()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。MongoTemplate.geoNear()方法的具体详情如下:
包路径:org.springframework.data.mongodb.core.MongoTemplate
类名称:MongoTemplate
方法名:geoNear

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);
}

相关文章