File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ Similar to consuming a Java `Iterator<List<…>>` by obtaining the next batch of
11
11
12
12
[source,java]
13
13
----
14
- Window<User> users = repository.findFirst10ByLastnameOrderByFirstname("Doe", OffsetScrollPosition.initial ());
14
+ Window<User> users = repository.findFirst10ByLastnameOrderByFirstname("Doe", ScrollPosition.offset ());
15
15
do {
16
16
17
17
for (User u : users) {
28
28
[source,java]
29
29
----
30
30
WindowIterator<User> users = WindowIterator.of(position -> repository.findFirst10ByLastnameOrderByFirstname("Doe", position))
31
- .startingAt(OffsetScrollPosition.initial ());
31
+ .startingAt(ScrollPosition.offset ());
32
32
33
33
while (users.hasNext()) {
34
34
User u = users.next();
@@ -53,7 +53,7 @@ interface UserRepository extends Repository<User, Long> {
53
53
}
54
54
55
55
WindowIterator<User> users = WindowIterator.of(position -> repository.findFirst10ByLastnameOrderByFirstname("Doe", position))
56
- .startingAt(OffsetScrollPosition.initial ()); <1>
56
+ .startingAt(ScrollPosition.offset ()); <1>
57
57
----
58
58
59
59
<1> Start from the initial offset at position `0`.
@@ -91,7 +91,7 @@ interface UserRepository extends Repository<User, Long> {
91
91
}
92
92
93
93
WindowIterator<User> users = WindowIterator.of(position -> repository.findFirst10ByLastnameOrderByFirstname("Doe", position))
94
- .startingAt(KeysetScrollPosition.initial ()); <1>
94
+ .startingAt(ScrollPosition.keyset ()); <1>
95
95
----
96
96
<1> Start at the very beginning and do not apply additional filtering.
97
97
====
You can’t perform that action at this time.
0 commit comments