use of com.revolsys.collection.list.ListByIndexIterator in project com.revolsys.open by revolsys.
the class ModeAbstractCached method exportRecords.
@Override
public void exportRecords(final Query query, final Object target) {
final Condition filter = query.getWhereCondition();
final Map<? extends CharSequence, Boolean> orderBy = query.getOrderBy();
final AbstractRecordLayer layer = getLayer();
final Iterable<LayerRecord> records = new ListByIndexIterator<>(this.records);
layer.exportRecords(records, filter, orderBy, target);
}
use of com.revolsys.collection.list.ListByIndexIterator in project com.revolsys.open by revolsys.
the class ModeAbstractCached method forEachRecord.
@Override
public void forEachRecord(final Query query, final Consumer<? super LayerRecord> action) {
final Condition filter = query.getWhereCondition();
final Map<? extends CharSequence, Boolean> orderBy = query.getOrderBy();
final AbstractRecordLayer layer = getLayer();
final Iterable<LayerRecord> records = new ListByIndexIterator<>(this.records);
layer.forEachRecord(records, filter, orderBy, action);
}
Aggregations