Interface IndexerQueriesExecutor
-
- All Known Implementing Classes:
DefaultIndexerQueriesExecutor
public interface IndexerQueriesExecutor
Implementations of this interface are responsible for running the queries required for the indexing process.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.util.List<ItemModel>
getItems(FacetSearchConfig facetSearchConfig, IndexedType indexedType, java.util.Collection<PK> pks)
Gets the model instances based on a list of pks.java.util.List<PK>
getPks(FacetSearchConfig facetSearchConfig, IndexedType indexedType, java.lang.String query, java.util.Map<java.lang.String,java.lang.Object> queryParameters)
Gets the pks of all the items that will be indexed.
-
-
-
Method Detail
-
getPks
java.util.List<PK> getPks(FacetSearchConfig facetSearchConfig, IndexedType indexedType, java.lang.String query, java.util.Map<java.lang.String,java.lang.Object> queryParameters) throws IndexerException
Gets the pks of all the items that will be indexed. The query will be run in the context of the current session user.- Parameters:
facetSearchConfig
- - the facet search configurationindexedType
- - the indexed typequery
- - a string representing the queryqueryParameters
- - the parameters for the query- Returns:
- the list of pks that represent the items to be indexed
- Throws:
IndexerException
- in case of error
-
getItems
java.util.List<ItemModel> getItems(FacetSearchConfig facetSearchConfig, IndexedType indexedType, java.util.Collection<PK> pks) throws IndexerException
Gets the model instances based on a list of pks. The pks list passed as parameter is normally just a subset of all the items that will be indexed. The query will be run in the context of the current session user- Parameters:
facetSearchConfig
- - the facet search configurationindexedType
- - the indexed typepks
- - the list of pks- Returns:
- the list of items to be indexed
- Throws:
IndexerException
- in case of error
-
-