クラス WindowIterator<T>
java.lang.ObjectSE
org.springframework.data.support.WindowIterator<T>
- 実装されたすべてのインターフェース:
IteratorSE<T>
window function
SE を介して取得された複数の Windows
上の Iterator
SE は、現在の 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
ネストされたクラスのサマリー
ネストされたクラス方法の概要
修飾子と型メソッド説明boolean
hasNext()
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