Search in sources :

Example 1 with PageFetcher

use of org.adempiere.util.collections.PagedIterator.PageFetcher in project metasfresh-webui-api by metasfresh.

the class HUEditorViewBuffer_HighVolume method huIdsPageFetcher.

private PageFetcher<Integer> huIdsPageFetcher(final List<DocumentQueryOrderBy> orderBys) {
    final ViewEvaluationCtx viewEvalCtx = getViewEvaluationCtx();
    final ViewRowIdsOrderedSelection selection = getSelection(orderBys);
    return (firstRow, maxRows) -> huEditorRepo.retrieveHUIdsPage(viewEvalCtx, selection, firstRow, maxRows);
}
Also used : Iterables(com.google.common.collect.Iterables) ViewRowIdsOrderedSelection(de.metas.ui.web.view.ViewRowIdsOrderedSelection) CCache(org.compiere.util.CCache) 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) ImmutableList(com.google.common.collect.ImmutableList) IteratorUtils(org.adempiere.util.collections.IteratorUtils) DocumentFilter(de.metas.ui.web.document.filter.DocumentFilter) DocumentQueryOrderBy(de.metas.ui.web.window.model.DocumentQueryOrderBy) I_M_HU(de.metas.handlingunits.model.I_M_HU) PageFetcher(org.adempiere.util.collections.PagedIterator.PageFetcher) DocumentIdsSelection(de.metas.ui.web.window.datatypes.DocumentIdsSelection) ImmutableSet(com.google.common.collect.ImmutableSet) Iterator(java.util.Iterator) NonNull(lombok.NonNull) Collection(java.util.Collection) ConcurrentHashMap(java.util.concurrent.ConcurrentHashMap) Set(java.util.Set) Objects(java.util.Objects) EntityNotFoundException(de.metas.ui.web.exceptions.EntityNotFoundException) List(java.util.List) Stream(java.util.stream.Stream) ViewId(de.metas.ui.web.view.ViewId) ViewEvaluationCtx(de.metas.ui.web.view.ViewEvaluationCtx) ViewRowIdsOrderedSelection(de.metas.ui.web.view.ViewRowIdsOrderedSelection)

Aggregations

ImmutableList (com.google.common.collect.ImmutableList)1 ImmutableSet (com.google.common.collect.ImmutableSet)1 Iterables (com.google.common.collect.Iterables)1 I_M_HU (de.metas.handlingunits.model.I_M_HU)1 DocumentFilter (de.metas.ui.web.document.filter.DocumentFilter)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 DocumentId (de.metas.ui.web.window.datatypes.DocumentId)1 DocumentIdsSelection (de.metas.ui.web.window.datatypes.DocumentIdsSelection)1 DocumentQueryOrderBy (de.metas.ui.web.window.model.DocumentQueryOrderBy)1 Collection (java.util.Collection)1 Iterator (java.util.Iterator)1 List (java.util.List)1 Objects (java.util.Objects)1 Set (java.util.Set)1 ConcurrentHashMap (java.util.concurrent.ConcurrentHashMap)1 Supplier (java.util.function.Supplier)1