Class ScrollDelegate
java.lang.Object
org.springframework.data.jdbc.repository.support.ScrollDelegate
Delegate to run
scroll queries
and create result Window
.- Since:
- 3.1.4
- Author:
- Mark Paluch
-
Constructor Summary
-
Method Summary
-
Constructor Details
-
ScrollDelegate
public ScrollDelegate()
-
-
Method Details
-
scroll
public static <T> Window<T> scroll(Query query, Function<Query, List<T>> queryFunction, ScrollPosition scrollPosition) - Parameters:
query
- must not be null.scrollPosition
- must not be null.- Returns:
- the scroll
Window
.
-
getFirst
Return the firstcount
items from the list.- Type Parameters:
T
- the element type of the lists.- Parameters:
count
- the number of first elements to be included in the returned list.list
- must not be null- Returns:
- the returned sublist if the
list
is greatercount
.
-