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

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

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

MongoTemplate.mapReduce介绍

暂无

代码示例

代码示例来源:origin: spring-projects/spring-data-mongodb

@Override
public <T> MapReduceResults<T> mapReduce(String inputCollectionName, String mapFunction, String reduceFunction,
    @Nullable MapReduceOptions mapReduceOptions, Class<T> entityClass) {
  return mapReduce(new Query(), inputCollectionName, mapFunction, reduceFunction, mapReduceOptions, entityClass);
}

代码示例来源:origin: spring-projects/spring-data-mongodb

@Override
public <T> MapReduceResults<T> mapReduce(Query query, String inputCollectionName, String mapFunction,
    String reduceFunction, @Nullable MapReduceOptions mapReduceOptions, Class<T> entityClass) {
  return new MapReduceResults<>(
      mapReduce(query, entityClass, inputCollectionName, mapFunction, reduceFunction, mapReduceOptions, entityClass),
      new Document());
}

代码示例来源:origin: spring-projects/spring-data-mongodb

@Override
public List<T> all() {
  return template.mapReduce(query, domainType, getCollectionName(), mapFunction, reduceFunction, options,
      returnType);
}

代码示例来源:origin: spring-projects/spring-data-mongodb

@Override
public <T> MapReduceResults<T> mapReduce(Query query, String inputCollectionName, String mapFunction,
    String reduceFunction, Class<T> entityClass) {
  return mapReduce(query, inputCollectionName, mapFunction, reduceFunction, new MapReduceOptions().outputTypeInline(),
      entityClass);
}

代码示例来源:origin: spring-projects/spring-data-mongodb

@Override
public <T> MapReduceResults<T> mapReduce(String inputCollectionName, String mapFunction, String reduceFunction,
    Class<T> entityClass) {
  return mapReduce(new Query(), inputCollectionName, mapFunction, reduceFunction,
      new MapReduceOptions().outputTypeInline(), entityClass);
}

代码示例来源:origin: org.springframework.data/spring-data-mongodb

@Override
public <T> MapReduceResults<T> mapReduce(String inputCollectionName, String mapFunction, String reduceFunction,
    @Nullable MapReduceOptions mapReduceOptions, Class<T> entityClass) {
  return mapReduce(new Query(), inputCollectionName, mapFunction, reduceFunction, mapReduceOptions, entityClass);
}

代码示例来源:origin: org.springframework.data/spring-data-mongodb

@Override
public List<T> all() {
  return template.mapReduce(query, domainType, getCollectionName(), mapFunction, reduceFunction, options,
      returnType);
}

代码示例来源:origin: org.springframework.data/spring-data-mongodb

@Override
public <T> MapReduceResults<T> mapReduce(Query query, String inputCollectionName, String mapFunction,
    String reduceFunction, @Nullable MapReduceOptions mapReduceOptions, Class<T> entityClass) {
  return new MapReduceResults<>(
      mapReduce(query, entityClass, inputCollectionName, mapFunction, reduceFunction, mapReduceOptions, entityClass),
      new Document());
}

代码示例来源:origin: org.springframework.data/spring-data-mongodb

@Override
public <T> MapReduceResults<T> mapReduce(Query query, String inputCollectionName, String mapFunction,
    String reduceFunction, Class<T> entityClass) {
  return mapReduce(query, inputCollectionName, mapFunction, reduceFunction, new MapReduceOptions().outputTypeInline(),
      entityClass);
}

代码示例来源:origin: org.springframework.data/spring-data-mongodb

@Override
public <T> MapReduceResults<T> mapReduce(String inputCollectionName, String mapFunction, String reduceFunction,
    Class<T> entityClass) {
  return mapReduce(new Query(), inputCollectionName, mapFunction, reduceFunction,
      new MapReduceOptions().outputTypeInline(), entityClass);
}

代码示例来源:origin: microcks/microcks

MapReduceResults<WrappedDailyStatistic> results = template.mapReduce(query, "dailyStatistic", 
   "classpath:mapDailyStatisticForADay.js", 
   "classpath:reduceDailyStatisticForADay.js",

相关文章