Class DefaultSnIndexerService
java.lang.Object
de.hybris.platform.searchservices.indexer.service.impl.DefaultSnIndexerService
- All Implemented Interfaces:
SnIndexerService
Default implementation for
SnIndexerService.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateFullIndexerRequest(String indexTypeId, SnIndexerItemSource indexerItemSource) Creates a full indexer request.createFullIndexerRequest(String indexTypeId, SnIndexerItemSource indexerItemSource, SnProgressTracker progressTracker) Creates a full indexer request.createIncrementalIndexerRequest(String indexTypeId, List<SnIndexerItemSourceOperation> indexerItemSourceOperations) Creates an incremental indexer request.createIncrementalIndexerRequest(String indexTypeId, List<SnIndexerItemSourceOperation> indexerItemSourceOperations, SnProgressTracker progressTracker) Creates an incremental indexer request.createItemSource(AbstractSnIndexerItemSourceModel itemSource, Map<String, Object> parameters) Creates a new instance ofSnIndexerItemSource.createItemSourceOperation(SnIndexerItemSourceOperationModel itemSourceOperation, Map<String, Object> parameters) Creates a new instance ofSnIndexerItemSourceOperation.index(SnIndexerRequest indexerRequest) Starts a new indexer operation.voidsetSnIndexerItemSourceFactory(SnIndexerItemSourceFactory snIndexerItemSourceFactory) voidsetSnIndexerStrategyFactory(SnIndexerStrategyFactory snIndexerStrategyFactory)
-
Constructor Details
-
DefaultSnIndexerService
public DefaultSnIndexerService()
-
-
Method Details
-
createItemSource
public SnIndexerItemSource createItemSource(AbstractSnIndexerItemSourceModel itemSource, Map<String, Object> parameters) throws SnIndexerExceptionDescription copied from interface:SnIndexerServiceCreates a new instance ofSnIndexerItemSource.- Specified by:
createItemSourcein interfaceSnIndexerService- Parameters:
itemSource- - the item sourceparameters- - the parameters- Returns:
- the new instance of
SnIndexerItemSource - Throws:
SnIndexerException- if an error occurs
-
createItemSourceOperation
public SnIndexerItemSourceOperation createItemSourceOperation(SnIndexerItemSourceOperationModel itemSourceOperation, Map<String, Object> parameters) throws SnIndexerExceptionDescription copied from interface:SnIndexerServiceCreates a new instance ofSnIndexerItemSourceOperation.- Specified by:
createItemSourceOperationin interfaceSnIndexerService- Parameters:
itemSourceOperation- - the item source operationparameters- - the parameters- Returns:
- the new instance of
SnIndexerItemSourceOperation - Throws:
SnIndexerException- if an error occurs
-
createFullIndexerRequest
public SnIndexerRequest createFullIndexerRequest(String indexTypeId, SnIndexerItemSource indexerItemSource) throws SnIndexerException Description copied from interface:SnIndexerServiceCreates a full indexer request.- Specified by:
createFullIndexerRequestin interfaceSnIndexerService- Parameters:
indexTypeId- - the index type idindexerItemSource- - the indexer item source- Returns:
- the new indexer request
- Throws:
SnIndexerException- if an error occurs
-
createFullIndexerRequest
public SnIndexerRequest createFullIndexerRequest(String indexTypeId, SnIndexerItemSource indexerItemSource, SnProgressTracker progressTracker) throws SnIndexerException Description copied from interface:SnIndexerServiceCreates a full indexer request.- Specified by:
createFullIndexerRequestin interfaceSnIndexerService- Parameters:
indexTypeId- - the index type idindexerItemSource- - the indexer item sourceprogressTracker- - the progress tracker- Returns:
- the new indexer request
- Throws:
SnIndexerException- if an error occurs
-
createIncrementalIndexerRequest
public SnIndexerRequest createIncrementalIndexerRequest(String indexTypeId, List<SnIndexerItemSourceOperation> indexerItemSourceOperations) throws SnIndexerException Description copied from interface:SnIndexerServiceCreates an incremental indexer request.- Specified by:
createIncrementalIndexerRequestin interfaceSnIndexerService- Parameters:
indexTypeId- - the index type idindexerItemSourceOperations- - the indexer item source operations- Returns:
- the new indexer request
- Throws:
SnIndexerException- if an error occurs
-
createIncrementalIndexerRequest
public SnIndexerRequest createIncrementalIndexerRequest(String indexTypeId, List<SnIndexerItemSourceOperation> indexerItemSourceOperations, SnProgressTracker progressTracker) throws SnIndexerException Description copied from interface:SnIndexerServiceCreates an incremental indexer request.- Specified by:
createIncrementalIndexerRequestin interfaceSnIndexerService- Parameters:
indexTypeId- - the index type idindexerItemSourceOperations- - the indexer item source operationsprogressTracker- - the progress tracker- Returns:
- the new indexer request
- Throws:
SnIndexerException- if an error occurs
-
index
Description copied from interface:SnIndexerServiceStarts a new indexer operation.- Specified by:
indexin interfaceSnIndexerService- Parameters:
indexerRequest- - the indexer request- Returns:
- the indexer response
- Throws:
SnIndexerException- if an error occurs
-
getSnIndexerItemSourceFactory
-
setSnIndexerItemSourceFactory
-
getSnIndexerStrategyFactory
-
setSnIndexerStrategyFactory
-