1
1
/*
2
- * Copyright 2011-2021 the original author or authors.
2
+ * Copyright 2011-2022 the original author or authors.
3
3
*
4
4
* Licensed under the Apache License, Version 2.0 (the "License");
5
5
* you may not use this file except in compliance with the License.
@@ -601,7 +601,9 @@ <T> GroupByResults<T> group(@Nullable Criteria criteria, String inputCollectionN
601
601
* @param reduceFunction The JavaScript reduce function
602
602
* @param entityClass The parametrized type of the returned list. Must not be {@literal null}.
603
603
* @return The results of the map reduce operation
604
+ * @deprecated since 3.4 in favor of {@link #aggregate(TypedAggregation, Class)}.
604
605
*/
606
+ @ Deprecated
605
607
<T > MapReduceResults <T > mapReduce (String inputCollectionName , String mapFunction , String reduceFunction ,
606
608
Class <T > entityClass );
607
609
@@ -614,7 +616,9 @@ <T> MapReduceResults<T> mapReduce(String inputCollectionName, String mapFunction
614
616
* @param mapReduceOptions Options that specify detailed map-reduce behavior.
615
617
* @param entityClass The parametrized type of the returned list. Must not be {@literal null}.
616
618
* @return The results of the map reduce operation
619
+ * @deprecated since 3.4 in favor of {@link #aggregate(TypedAggregation, Class)}.
617
620
*/
621
+ @ Deprecated
618
622
<T > MapReduceResults <T > mapReduce (String inputCollectionName , String mapFunction , String reduceFunction ,
619
623
@ Nullable MapReduceOptions mapReduceOptions , Class <T > entityClass );
620
624
@@ -628,7 +632,9 @@ <T> MapReduceResults<T> mapReduce(String inputCollectionName, String mapFunction
628
632
* @param reduceFunction The JavaScript reduce function
629
633
* @param entityClass The parametrized type of the returned list. Must not be {@literal null}.
630
634
* @return The results of the map reduce operation
635
+ * @deprecated since 3.4 in favor of {@link #aggregate(TypedAggregation, Class)}.
631
636
*/
637
+ @ Deprecated
632
638
<T > MapReduceResults <T > mapReduce (Query query , String inputCollectionName , String mapFunction , String reduceFunction ,
633
639
Class <T > entityClass );
634
640
@@ -642,7 +648,9 @@ <T> MapReduceResults<T> mapReduce(Query query, String inputCollectionName, Strin
642
648
* @param mapReduceOptions Options that specify detailed map-reduce behavior
643
649
* @param entityClass The parametrized type of the returned list. Must not be {@literal null}.
644
650
* @return The results of the map reduce operation
651
+ * @deprecated since 3.4 in favor of {@link #aggregate(TypedAggregation, Class)}.
645
652
*/
653
+ @ Deprecated
646
654
<T > MapReduceResults <T > mapReduce (Query query , String inputCollectionName , String mapFunction , String reduceFunction ,
647
655
@ Nullable MapReduceOptions mapReduceOptions , Class <T > entityClass );
648
656
0 commit comments