Interface IndexerBatchStrategy
- All Known Implementing Classes:
DefaultIndexerBatchStrategy
public interface IndexerBatchStrategy
Strategy for performing batch indexing.
-
Method Summary
Modifier and TypeMethodDescriptionvoidexecute()Executes the strategy.voidsetExternalIndexOperation(boolean externalIndexOperation) Sets the external index operation to be used.voidsetFacetSearchConfig(FacetSearchConfig facetSearchConfig) Sets the facet search config to be used.voidSets the index to be usedvoidsetIndexedProperties(Collection<IndexedProperty> indexedProperties) Sets the indexed properties to be usedvoidsetIndexedType(IndexedType indexedType) Sets the indexed type to be usedvoidsetIndexerHints(Map<String, String> indexerHints) Sets the indexer hints to be usedvoidsetIndexOperation(IndexOperation indexOperation) Sets the index operation to be usedvoidsetIndexOperationId(long indexOperationId) Sets the indexed operation id to be usedvoidSets the pks to be used
-
Method Details
-
setExternalIndexOperation
void setExternalIndexOperation(boolean externalIndexOperation) Sets the external index operation to be used.- Parameters:
externalIndexOperation- - the external index operation
-
setFacetSearchConfig
Sets the facet search config to be used.- Parameters:
facetSearchConfig- - the facet search config to be used
-
setIndex
Sets the index to be used- Parameters:
index- - the index to be used
-
setIndexedProperties
Sets the indexed properties to be used- Parameters:
indexedProperties- - the indexed properties to be used
-
setIndexedType
Sets the indexed type to be used- Parameters:
indexedType- - the indexed type to be used
-
setIndexerHints
Sets the indexer hints to be used- Parameters:
indexerHints- - the indexer hints to be used
-
setIndexOperation
Sets the index operation to be used- Parameters:
indexOperation- - the index operation to be used
-
setIndexOperationId
void setIndexOperationId(long indexOperationId) Sets the indexed operation id to be used- Parameters:
indexOperationId- - the indexed operation id to be used
-
setPks
Sets the pks to be used- Parameters:
pks- - the pks to be used
-
execute
Executes the strategy.- Throws:
InterruptedException- throw if a thread is interruptedIndexerException- if an error occurs during the strategy execution
-