Package io.jmix.search.index.queue.impl
Class NonJpaEntityIdsLoader
java.lang.Object
io.jmix.search.index.queue.impl.OrderBasedEntityIdsLoader
io.jmix.search.index.queue.impl.NonJpaEntityIdsLoader
- All Implemented Interfaces:
EntityIdsLoader
@NullMarked
@Component("search_NonJpaEntityIdsLoader")
public class NonJpaEntityIdsLoader
extends OrderBasedEntityIdsLoader
Loads ids of an entity that is not a JPA entity, for example a dynamic entity stored in a custom
data store. Pages through the entity ordered by the session's ordering property using the
store's own condition support instead of JPQL.
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.jmix.search.index.queue.EntityIdsLoader
EntityIdsLoader.ResultHolder -
Field Summary
Fields inherited from class io.jmix.search.index.queue.impl.OrderBasedEntityIdsLoader
dataManager, metadata, metadataTools, storeAwareLocator -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionloadNextIds(EnqueueingSession session, int batchSize) Loads next batch of instances related to provided session.protected List<KeyValueEntity> loadValues(ValueLoadContext valueLoadContext) Methods inherited from class io.jmix.search.index.queue.impl.OrderBasedEntityIdsLoader
convertRawValue, createValueLoadContext, loadAllInMemory, resolveLastLoadedOrderingValue
-
Constructor Details
-
NonJpaEntityIdsLoader
public NonJpaEntityIdsLoader()
-
-
Method Details
-
loadNextIds
Description copied from interface:EntityIdsLoaderLoads next batch of instances related to provided session.- Specified by:
loadNextIdsin interfaceEntityIdsLoader- Overrides:
loadNextIdsin classOrderBasedEntityIdsLoader- Parameters:
session- enqueueing sessionbatchSize- batch size- Returns:
- loading result
-
loadValues
- Specified by:
loadValuesin classOrderBasedEntityIdsLoader
-