Search in sources :

Example 1 with ListResultPager

use of com.revolsys.collection.ListResultPager in project com.revolsys.open by revolsys.

the class RecordStore method page.

default ResultPager<Record> page(final Query query) {
    final RecordReader results = getRecords(query);
    final List<Record> list = results.toList();
    return new ListResultPager<>(list);
}
Also used : ListRecordReader(com.revolsys.record.io.ListRecordReader) RecordReader(com.revolsys.record.io.RecordReader) ListResultPager(com.revolsys.collection.ListResultPager) Record(com.revolsys.record.Record) ArrayRecord(com.revolsys.record.ArrayRecord)

Aggregations

ListResultPager (com.revolsys.collection.ListResultPager)1 ArrayRecord (com.revolsys.record.ArrayRecord)1 Record (com.revolsys.record.Record)1 ListRecordReader (com.revolsys.record.io.ListRecordReader)1 RecordReader (com.revolsys.record.io.RecordReader)1