Class DefaultSnIndexerBatchStrategy
java.lang.Object
de.hybris.platform.searchservices.indexer.service.impl.AbstractSnIndexerBatchStrategy
de.hybris.platform.searchservices.indexer.service.impl.DefaultSnIndexerBatchStrategy
- All Implemented Interfaces:
SnIndexerBatchStrategy,org.springframework.beans.factory.Aware,org.springframework.context.ApplicationContextAware
public class DefaultSnIndexerBatchStrategy
extends AbstractSnIndexerBatchStrategy
implements org.springframework.context.ApplicationContextAware
Default implementation for
SnIndexerBatchStrategy.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected static class -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidaddDeleteDocumentBatchOperationRequests(SnIndexerContext indexerContext, List<SnDocumentBatchOperationRequest> documentBatchOperationRequests, List<PK> pks, SnIdentityProvider<ItemModel> identityProvider) protected voidaddIndexDocumentBatchOperationRequests(SnIndexerContext indexerContext, List<SnDocumentBatchOperationRequest> documentBatchOperationRequests, List<PK> pks, SnIdentityProvider<ItemModel> identityProvider, SnIndexerItemSourceOperation indexeritemSourceOperation) protected Map<String,List<SnQualifier>> collectAvailableQualifiers(SnIndexerContext indexerContext, SnIndexType indexType) collectItems(SnIndexerContext indexerContext, List<PK> pks) protected SnIdentityProvider<ItemModel>createIdentityProvider(SnIndexerContext indexerContext) protected SnIndexerValueProvider<ItemModel>createValueProvider(String valueProviderId) createValueProviders(SnIndexerContext indexerContext, SnIndexerItemSourceOperation indexerItemSourceOperation) protected SnIndexerBatchResponsedoExecute(SnIndexerContext indexerContext, String indexerBatchId) protected org.springframework.context.ApplicationContextvoidsetApplicationContext(org.springframework.context.ApplicationContext applicationContext) voidsetFlexibleSearchService(FlexibleSearchService flexibleSearchService) voidsetSnQualifierTypeFactory(SnQualifierTypeFactory snQualifierTypeFactory) voidsetSnSearchProviderFactory(SnSearchProviderFactory snSearchProviderFactory) Methods inherited from class de.hybris.platform.searchservices.indexer.service.impl.AbstractSnIndexerBatchStrategy
createIndexerBatchResponse, execute, executeAfterIndexBatchErrorListeners, executeAfterIndexBatchListeners, executeBeforeIndexBatchListeners, getSnIndexerContextFactory, getSnListenerFactory, getSnSessionService, setSnIndexerContextFactory, setSnListenerFactory, setSnSessionService
-
Constructor Details
-
DefaultSnIndexerBatchStrategy
public DefaultSnIndexerBatchStrategy()
-
-
Method Details
-
doExecute
protected SnIndexerBatchResponse doExecute(SnIndexerContext indexerContext, String indexerBatchId) throws SnException, InterruptedException - Specified by:
doExecutein classAbstractSnIndexerBatchStrategy- Throws:
SnExceptionInterruptedException
-
addIndexDocumentBatchOperationRequests
protected void addIndexDocumentBatchOperationRequests(SnIndexerContext indexerContext, List<SnDocumentBatchOperationRequest> documentBatchOperationRequests, List<PK> pks, SnIdentityProvider<ItemModel> identityProvider, SnIndexerItemSourceOperation indexeritemSourceOperation) throws SnException, InterruptedException - Throws:
SnExceptionInterruptedException
-
addDeleteDocumentBatchOperationRequests
protected void addDeleteDocumentBatchOperationRequests(SnIndexerContext indexerContext, List<SnDocumentBatchOperationRequest> documentBatchOperationRequests, List<PK> pks, SnIdentityProvider<ItemModel> identityProvider) throws SnException, InterruptedException - Throws:
SnExceptionInterruptedException
-
createIdentityProvider
protected SnIdentityProvider<ItemModel> createIdentityProvider(SnIndexerContext indexerContext) throws SnIndexerException - Throws:
SnIndexerException
-
collectItems
-
createValueProviders
protected Collection<DefaultSnIndexerBatchStrategy.ValueProviderWrapper> createValueProviders(SnIndexerContext indexerContext, SnIndexerItemSourceOperation indexerItemSourceOperation) throws SnIndexerException - Throws:
SnIndexerException
-
collectAvailableQualifiers
protected Map<String,List<SnQualifier>> collectAvailableQualifiers(SnIndexerContext indexerContext, SnIndexType indexType) -
createValueProvider
protected SnIndexerValueProvider<ItemModel> createValueProvider(String valueProviderId) throws SnIndexerException - Throws:
SnIndexerException
-
getFlexibleSearchService
-
setFlexibleSearchService
-
getSnSearchProviderFactory
-
setSnSearchProviderFactory
-
getSnQualifierTypeFactory
-
setSnQualifierTypeFactory
-
getApplicationContext
protected org.springframework.context.ApplicationContext getApplicationContext() -
setApplicationContext
public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext) - Specified by:
setApplicationContextin interfaceorg.springframework.context.ApplicationContextAware
-