クラス WindowIterator<T>
java.lang.ObjectSE
org.springframework.data.support.WindowIterator<T>
- 実装されているすべてのインターフェース:
IteratorSE<T>
window functionSE を介して取得された複数の Windows 上の IteratorSE は、現在の ScrollPosition を追跡し、すべての結果要素をスクロールできるようにします。
WindowIterator<User> users = WindowIterator.of(position -> repository.findFirst10By…("spring", position))
.startingAt(ScrollPosition.offset());
while (users.hasNext()) {
User u = users.next();
// consume user
}
- 導入:
- 3.1
- 作成者:
- Christoph Strobl, Mark Paluch
ネストされたクラスの要約
ネストされたクラスメソッドのサマリー
修飾子と型メソッド説明booleanhasNext()next()static <T> WindowIterator.WindowIteratorBuilder<T>of(FunctionSE<ScrollPosition, Window<T>> windowFunction) 指定された windowFunction の新しいWindowIteratorを作成するためのエントリポイント。クラス java.lang.ObjectSE から継承されたメソッド
clone, equalsSE, finalize, getClass, hashCode, notify, notifyAll, toString, wait, waitSE, waitSEインターフェース java.util.IteratorSE から継承されたメソッド
forEachRemainingSE, remove
メソッドの詳細
of
public static <T> WindowIterator.WindowIteratorBuilder<T> of(FunctionSE<ScrollPosition, Window<T>> windowFunction) 指定された windowFunction の新しいWindowIteratorを作成するためのエントリポイント。- 型パラメーター:
T-- パラメーター:
windowFunction- null であってはなりません。- 戻り値:
WindowIterator.WindowIteratorBuilderの新しいインスタンス。
hasNext
public boolean hasNext()- 次で指定:
- インターフェース
IteratorSE<T>のhasNext
next
- 次で指定:
- インターフェース
IteratorSE<T>のnext