public class DefaultIndexerBatchStrategy extends Object implements IndexerBatchStrategy
IndexerBatchStrategy| Constructor and Description |
|---|
DefaultIndexerBatchStrategy() |
public Indexer getIndexer()
public void setIndexer(Indexer indexer)
public IndexerBatchContextFactory getIndexerBatchContextFactory()
public void setIndexerBatchContextFactory(IndexerBatchContextFactory<?> indexerBatchContextFactory)
public IndexerQueriesExecutor getIndexerQueriesExecutor()
public void setIndexerQueriesExecutor(IndexerQueriesExecutor indexerQueriesExecutor)
public boolean isExternalIndexOperation()
public void setExternalIndexOperation(boolean externalIndexOperation)
IndexerBatchStrategysetExternalIndexOperation in interface IndexerBatchStrategyexternalIndexOperation - - the external index operationpublic FacetSearchConfig getFacetSearchConfig()
public void setFacetSearchConfig(FacetSearchConfig facetSearchConfig)
IndexerBatchStrategysetFacetSearchConfig in interface IndexerBatchStrategyfacetSearchConfig - - the facet search config to be usedpublic Index getIndex()
public void setIndex(Index index)
IndexerBatchStrategysetIndex in interface IndexerBatchStrategyindex - - the index to be usedpublic Collection<IndexedProperty> getIndexedProperties()
public void setIndexedProperties(Collection<IndexedProperty> indexedProperties)
IndexerBatchStrategysetIndexedProperties in interface IndexerBatchStrategyindexedProperties - - the indexed properties to be usedpublic IndexedType getIndexedType()
public void setIndexedType(IndexedType indexedType)
IndexerBatchStrategysetIndexedType in interface IndexerBatchStrategyindexedType - - the indexed type to be usedpublic void setIndexerHints(Map<String,String> indexerHints)
IndexerBatchStrategysetIndexerHints in interface IndexerBatchStrategyindexerHints - - the indexer hints to be usedpublic IndexOperation getIndexOperation()
public void setIndexOperation(IndexOperation indexOperation)
IndexerBatchStrategysetIndexOperation in interface IndexerBatchStrategyindexOperation - - the index operation to be usedpublic long getIndexOperationId()
public void setIndexOperationId(long indexOperationId)
IndexerBatchStrategysetIndexOperationId in interface IndexerBatchStrategyindexOperationId - - the indexed operation id to be usedpublic void setPks(List<PK> pks)
IndexerBatchStrategysetPks in interface IndexerBatchStrategypks - - the pks to be usedpublic void execute()
throws InterruptedException,
IndexerException
IndexerBatchStrategyexecute in interface IndexerBatchStrategyInterruptedException - throw if a thread is interruptedIndexerException - if an error occurs during the strategy executionprotected void validateRequiredFields()
protected List<ItemModel> executeIndexerQuery(FacetSearchConfig facetSearchConfig, IndexedType indexedType, List<PK> pks) throws IndexerException
IndexerExceptionprotected void executeIndexerOperation(IndexerBatchContext batchContext) throws IndexerException, InterruptedException
IndexerExceptionInterruptedExceptionCopyright © 2017 SAP SE. All Rights Reserved.