Class DefaultIndexerBatchStrategy
java.lang.Object
de.hybris.platform.solrfacetsearch.indexer.strategies.impl.DefaultIndexerBatchStrategy
- All Implemented Interfaces:
IndexerBatchStrategy
Default implementation of
IndexerBatchStrategy-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidexecute()Executes the strategy.protected voidexecuteIndexerOperation(IndexerBatchContext batchContext) executeIndexerQuery(FacetSearchConfig facetSearchConfig, IndexedType indexedType, List<PK> pks) getIndex()longgetPks()booleanvoidsetExternalIndexOperation(boolean externalIndexOperation) Sets the external index operation to be used.voidsetFacetSearchConfig(FacetSearchConfig facetSearchConfig) Sets the facet search config to be used.voidSets the index to be usedvoidsetIndexedProperties(Collection<IndexedProperty> indexedProperties) Sets the indexed properties to be usedvoidsetIndexedType(IndexedType indexedType) Sets the indexed type to be usedvoidsetIndexer(Indexer indexer) voidsetIndexerBatchContextFactory(IndexerBatchContextFactory<?> indexerBatchContextFactory) voidsetIndexerHints(Map<String, String> indexerHints) Sets the indexer hints to be usedvoidsetIndexerQueriesExecutor(IndexerQueriesExecutor indexerQueriesExecutor) voidsetIndexOperation(IndexOperation indexOperation) Sets the index operation to be usedvoidsetIndexOperationId(long indexOperationId) Sets the indexed operation id to be usedvoidSets the pks to be usedprotected void
-
Constructor Details
-
DefaultIndexerBatchStrategy
public DefaultIndexerBatchStrategy()
-
-
Method Details
-
getIndexer
-
setIndexer
-
getIndexerBatchContextFactory
-
setIndexerBatchContextFactory
-
getIndexerQueriesExecutor
-
setIndexerQueriesExecutor
-
isExternalIndexOperation
public boolean isExternalIndexOperation() -
setExternalIndexOperation
public void setExternalIndexOperation(boolean externalIndexOperation) Description copied from interface:IndexerBatchStrategySets the external index operation to be used.- Specified by:
setExternalIndexOperationin interfaceIndexerBatchStrategy- Parameters:
externalIndexOperation- - the external index operation
-
getFacetSearchConfig
-
setFacetSearchConfig
Description copied from interface:IndexerBatchStrategySets the facet search config to be used.- Specified by:
setFacetSearchConfigin interfaceIndexerBatchStrategy- Parameters:
facetSearchConfig- - the facet search config to be used
-
getIndex
-
setIndex
Description copied from interface:IndexerBatchStrategySets the index to be used- Specified by:
setIndexin interfaceIndexerBatchStrategy- Parameters:
index- - the index to be used
-
getIndexedProperties
-
setIndexedProperties
Description copied from interface:IndexerBatchStrategySets the indexed properties to be used- Specified by:
setIndexedPropertiesin interfaceIndexerBatchStrategy- Parameters:
indexedProperties- - the indexed properties to be used
-
getIndexedType
-
setIndexedType
Description copied from interface:IndexerBatchStrategySets the indexed type to be used- Specified by:
setIndexedTypein interfaceIndexerBatchStrategy- Parameters:
indexedType- - the indexed type to be used
-
getIndexerHints
-
setIndexerHints
Description copied from interface:IndexerBatchStrategySets the indexer hints to be used- Specified by:
setIndexerHintsin interfaceIndexerBatchStrategy- Parameters:
indexerHints- - the indexer hints to be used
-
getIndexOperation
-
setIndexOperation
Description copied from interface:IndexerBatchStrategySets the index operation to be used- Specified by:
setIndexOperationin interfaceIndexerBatchStrategy- Parameters:
indexOperation- - the index operation to be used
-
getIndexOperationId
public long getIndexOperationId() -
setIndexOperationId
public void setIndexOperationId(long indexOperationId) Description copied from interface:IndexerBatchStrategySets the indexed operation id to be used- Specified by:
setIndexOperationIdin interfaceIndexerBatchStrategy- Parameters:
indexOperationId- - the indexed operation id to be used
-
getPks
-
setPks
Description copied from interface:IndexerBatchStrategySets the pks to be used- Specified by:
setPksin interfaceIndexerBatchStrategy- Parameters:
pks- - the pks to be used
-
execute
Description copied from interface:IndexerBatchStrategyExecutes the strategy.- Specified by:
executein interfaceIndexerBatchStrategy- Throws:
InterruptedException- throw if a thread is interruptedIndexerException- if an error occurs during the strategy execution
-
validateRequiredFields
protected void validateRequiredFields() -
executeIndexerQuery
protected List<ItemModel> executeIndexerQuery(FacetSearchConfig facetSearchConfig, IndexedType indexedType, List<PK> pks) throws IndexerException - Throws:
IndexerException
-
executeIndexerOperation
protected void executeIndexerOperation(IndexerBatchContext batchContext) throws IndexerException, InterruptedException - Throws:
IndexerExceptionInterruptedException
-