Interface IndexerStrategy
-
- All Known Implementing Classes:
AbstractIndexerStrategy
,BackofficeIndexerStrategy
,DefaultIndexerStrategy
,DistributedIndexerStrategy
public interface IndexerStrategy
Strategy for performing the indexing process. This strategy is normally responsible for creating and triggering the execution of the indexer workers (seeIndexerWorker
andIndexerWorkerFactory
).
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
execute()
Executes the strategy.void
setFacetSearchConfig(FacetSearchConfig facetSearchConfig)
Sets the facet search configuration to be used.void
setIndex(Index index)
Sets the index to be used.void
setIndexedProperties(java.util.Collection<IndexedProperty> indexedProperties)
Sets the index operation to be used.void
setIndexedType(IndexedType indexedType)
Sets the indexed type to be used.void
setIndexerHints(java.util.Map<java.lang.String,java.lang.String> indexerHints)
Sets the indexer hints to be used.void
setIndexOperation(IndexOperation indexOperation)
Sets the index operation to be used.void
setPks(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 IndexerException
Executes the strategy.- Throws:
IndexerException
- if an error occurs during the strategy execution
-
-