Search in sources :

Example 1 with PageFetcher

use of de.metas.util.collections.PagedIterator.PageFetcher in project metasfresh-webui-api by metasfresh.

the class HUEditorViewBuffer_HighVolume method huIdsPageFetcher.

private PageFetcher<HuId> huIdsPageFetcher(final DocumentQueryOrderByList orderBys) {
    final ViewEvaluationCtx viewEvalCtx = getViewEvaluationCtx();
    final ViewRowIdsOrderedSelection selection = getSelection(orderBys);
    return (firstRow, maxRows) -> huEditorRepo.retrieveHUIdsPage(viewEvalCtx, selection, firstRow, maxRows);
}
Also used : JSONOptions(de.metas.ui.web.window.datatypes.json.JSONOptions) ViewRowIdsOrderedSelection(de.metas.ui.web.view.ViewRowIdsOrderedSelection) ViewEvaluationCtx(de.metas.ui.web.view.ViewEvaluationCtx) DocumentId(de.metas.ui.web.window.datatypes.DocumentId) UnaryOperator(java.util.function.UnaryOperator) HUIdsFilterData(de.metas.ui.web.handlingunits.HUIdsFilterHelper.HUIdsFilterData) Supplier(java.util.function.Supplier) SynchronizedMutable(org.adempiere.util.lang.SynchronizedMutable) Mutables(org.adempiere.util.lang.Mutables) IteratorUtils(de.metas.util.collections.IteratorUtils) DocumentFilterList(de.metas.ui.web.document.filter.DocumentFilterList) I_M_HU(de.metas.handlingunits.model.I_M_HU) DocumentIdsSelection(de.metas.ui.web.window.datatypes.DocumentIdsSelection) SqlDocumentFilterConverterContext(de.metas.ui.web.document.filter.sql.SqlDocumentFilterConverterContext) ImmutableSet(com.google.common.collect.ImmutableSet) Iterator(java.util.Iterator) DocumentQueryOrderByList(de.metas.ui.web.window.model.DocumentQueryOrderByList) NonNull(lombok.NonNull) Collection(java.util.Collection) ConcurrentHashMap(java.util.concurrent.ConcurrentHashMap) Set(java.util.Set) CCache(de.metas.cache.CCache) Objects(java.util.Objects) PageFetcher(de.metas.util.collections.PagedIterator.PageFetcher) EntityNotFoundException(de.metas.ui.web.exceptions.EntityNotFoundException) Stream(java.util.stream.Stream) HuId(de.metas.handlingunits.HuId) ViewRowsOrderBy(de.metas.ui.web.view.ViewRowsOrderBy) ViewId(de.metas.ui.web.view.ViewId) ViewEvaluationCtx(de.metas.ui.web.view.ViewEvaluationCtx) ViewRowIdsOrderedSelection(de.metas.ui.web.view.ViewRowIdsOrderedSelection)

Aggregations

ImmutableSet (com.google.common.collect.ImmutableSet)1 CCache (de.metas.cache.CCache)1 HuId (de.metas.handlingunits.HuId)1 I_M_HU (de.metas.handlingunits.model.I_M_HU)1 DocumentFilterList (de.metas.ui.web.document.filter.DocumentFilterList)1 SqlDocumentFilterConverterContext (de.metas.ui.web.document.filter.sql.SqlDocumentFilterConverterContext)1 EntityNotFoundException (de.metas.ui.web.exceptions.EntityNotFoundException)1 HUIdsFilterData (de.metas.ui.web.handlingunits.HUIdsFilterHelper.HUIdsFilterData)1 ViewEvaluationCtx (de.metas.ui.web.view.ViewEvaluationCtx)1 ViewId (de.metas.ui.web.view.ViewId)1 ViewRowIdsOrderedSelection (de.metas.ui.web.view.ViewRowIdsOrderedSelection)1 ViewRowsOrderBy (de.metas.ui.web.view.ViewRowsOrderBy)1 DocumentId (de.metas.ui.web.window.datatypes.DocumentId)1 DocumentIdsSelection (de.metas.ui.web.window.datatypes.DocumentIdsSelection)1 JSONOptions (de.metas.ui.web.window.datatypes.json.JSONOptions)1 DocumentQueryOrderByList (de.metas.ui.web.window.model.DocumentQueryOrderByList)1 IteratorUtils (de.metas.util.collections.IteratorUtils)1 PageFetcher (de.metas.util.collections.PagedIterator.PageFetcher)1 Collection (java.util.Collection)1 Iterator (java.util.Iterator)1