Class DefaultSnIndexerService
- java.lang.Object
-
- de.hybris.platform.searchservices.indexer.service.impl.DefaultSnIndexerService
-
- All Implemented Interfaces:
SnIndexerService
public class DefaultSnIndexerService extends java.lang.Object implements SnIndexerService
Default implementation forSnIndexerService.
-
-
Constructor Summary
Constructors Constructor Description DefaultSnIndexerService()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SnIndexerRequestcreateFullIndexerRequest(java.lang.String indexTypeId, SnIndexerItemSource indexerItemSource)Creates a full indexer request.SnIndexerRequestcreateIncrementalIndexerRequest(java.lang.String indexTypeId, java.util.List<SnIndexerItemSourceOperation> indexerItemSourceOperations)Creates an incremental indexer request.SnIndexerStrategyFactorygetSnIndexerStrategyFactory()SnIndexerResponseindex(SnIndexerRequest indexerRequest)Starts a new indexer operation.voidsetSnIndexerStrategyFactory(SnIndexerStrategyFactory snIndexerStrategyFactory)
-
-
-
Method Detail
-
createFullIndexerRequest
public SnIndexerRequest createFullIndexerRequest(java.lang.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
-
createIncrementalIndexerRequest
public SnIndexerRequest createIncrementalIndexerRequest(java.lang.String indexTypeId, java.util.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
-
index
public SnIndexerResponse index(SnIndexerRequest indexerRequest) throws SnIndexerException
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
-
getSnIndexerStrategyFactory
public SnIndexerStrategyFactory getSnIndexerStrategyFactory()
-
setSnIndexerStrategyFactory
public void setSnIndexerStrategyFactory(SnIndexerStrategyFactory snIndexerStrategyFactory)
-
-