24
24
25
25
import org .bson .Document ;
26
26
import org .springframework .data .domain .KeysetScrollPosition ;
27
- import org .springframework .data .domain .Scroll ;
27
+ import org .springframework .data .domain .Window ;
28
28
import org .springframework .data .geo .GeoResults ;
29
29
import org .springframework .data .mongodb .core .BulkOperations .BulkMode ;
30
30
import org .springframework .data .mongodb .core .aggregation .Aggregation ;
@@ -807,7 +807,7 @@ <T> MapReduceResults<T> mapReduce(Query query, String inputCollectionName, Strin
807
807
<T > List <T > find (Query query , Class <T > entityClass , String collectionName );
808
808
809
809
/**
810
- * Query for a scroll window of objects of type T from the specified collection. <br />
810
+ * Query for a window window of objects of type T from the specified collection. <br />
811
811
* Make sure to either set {@link Query#skip(long)} or {@link Query#with(KeysetScrollPosition)} along with
812
812
* {@link Query#limit(int)} to limit large query results for efficient scrolling. <br />
813
813
* Result objects are converted from the MongoDB native representation using an instance of {@see MongoConverter}.
@@ -817,16 +817,17 @@ <T> MapReduceResults<T> mapReduce(Query query, String inputCollectionName, Strin
817
817
*
818
818
* @param query the query class that specifies the criteria used to find a record and also an optional fields
819
819
* specification. Must not be {@literal null}.
820
- * @param entityType the parametrized type of the returned list.
821
- * @return the converted scroll.
820
+ * @param entityType the parametrized type of the returned window.
821
+ * @return the converted window.
822
+ * @throws IllegalStateException if a potential {@link Query#getKeyset() KeysetScrollPosition} contains an invalid position.
822
823
* @since 4.1
823
824
* @see Query#with(org.springframework.data.domain.OffsetScrollPosition)
824
825
* @see Query#with(org.springframework.data.domain.KeysetScrollPosition)
825
826
*/
826
- <T > Scroll <T > scroll (Query query , Class <T > entityType );
827
+ <T > Window <T > scroll (Query query , Class <T > entityType );
827
828
828
829
/**
829
- * Query for a scroll of objects of type T from the specified collection. <br />
830
+ * Query for a window of objects of type T from the specified collection. <br />
830
831
* Make sure to either set {@link Query#skip(long)} or {@link Query#with(KeysetScrollPosition)} along with
831
832
* {@link Query#limit(int)} to limit large query results for efficient scrolling. <br />
832
833
* Result objects are converted from the MongoDB native representation using an instance of {@see MongoConverter}.
@@ -836,14 +837,15 @@ <T> MapReduceResults<T> mapReduce(Query query, String inputCollectionName, Strin
836
837
*
837
838
* @param query the query class that specifies the criteria used to find a record and also an optional fields
838
839
* specification. Must not be {@literal null}.
839
- * @param entityType the parametrized type of the returned list .
840
+ * @param entityType the parametrized type of the returned window .
840
841
* @param collectionName name of the collection to retrieve the objects from.
841
- * @return the converted scroll.
842
+ * @return the converted window.
843
+ * @throws IllegalStateException if a potential {@link Query#getKeyset() KeysetScrollPosition} contains an invalid position.
842
844
* @since 4.1
843
845
* @see Query#with(org.springframework.data.domain.OffsetScrollPosition)
844
846
* @see Query#with(org.springframework.data.domain.KeysetScrollPosition)
845
847
*/
846
- <T > Scroll <T > scroll (Query query , Class <T > entityType , String collectionName );
848
+ <T > Window <T > scroll (Query query , Class <T > entityType , String collectionName );
847
849
848
850
/**
849
851
* Returns a document with the given id mapped onto the given class. The collection the query is ran against will be
0 commit comments