Interface IndexerStrategy
-
- All Known Implementing Classes:
AbstractIndexerStrategy,BackofficeIndexerStrategy,DefaultIndexerStrategy,DistributedIndexerStrategy
public interface IndexerStrategyStrategy for performing the indexing process. This strategy is normally responsible for creating and triggering the execution of the indexer workers (seeIndexerWorkerandIndexerWorkerFactory).
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidexecute()Executes the strategy.voidsetFacetSearchConfig(FacetSearchConfig facetSearchConfig)Sets the facet search configuration to be used.voidsetIndex(Index index)Sets the index to be used.voidsetIndexedProperties(java.util.Collection<IndexedProperty> indexedProperties)Sets the index operation to be used.voidsetIndexedType(IndexedType indexedType)Sets the indexed type to be used.voidsetIndexerHints(java.util.Map<java.lang.String,java.lang.String> indexerHints)Sets the indexer hints to be used.voidsetIndexOperation(IndexOperation indexOperation)Sets the index operation to be used.voidsetPks(java.util.List<PK> pks)Sets the pks of the items to be indexed.
-
-
-
Method Detail
-
setIndexOperation
void setIndexOperation(IndexOperation indexOperation)
Sets the index operation to be used.- Parameters:
indexOperation- - the index operation
-
setFacetSearchConfig
void setFacetSearchConfig(FacetSearchConfig facetSearchConfig)
Sets the facet search configuration to be used.- Parameters:
facetSearchConfig- - the index operation
-
setIndexedType
void setIndexedType(IndexedType indexedType)
Sets the indexed type to be used.- Parameters:
indexedType- - the index operation
-
setIndexedProperties
void setIndexedProperties(java.util.Collection<IndexedProperty> indexedProperties)
Sets the index operation to be used.- Parameters:
indexedProperties- - the indexed properties
-
setPks
void setPks(java.util.List<PK> pks)
Sets the pks of the items to be indexed.- Parameters:
pks- - the pks of the items to be indexed
-
setIndex
void setIndex(Index index)
Sets the index to be used.- Parameters:
index- - the index
-
setIndexerHints
void setIndexerHints(java.util.Map<java.lang.String,java.lang.String> indexerHints)
Sets the indexer hints to be used.- Parameters:
indexerHints- - the indexer hints to be used
-
execute
void execute() throws IndexerExceptionExecutes the strategy.- Throws:
IndexerException- if an error occurs during the strategy execution
-
-