public class DefaultIndexerBatchStrategy extends java.lang.Object implements IndexerBatchStrategy
IndexerBatchStrategy| Constructor and Description |
|---|
DefaultIndexerBatchStrategy() |
| Modifier and Type | Method and Description |
|---|---|
void |
execute()
Executes the strategy.
|
protected void |
executeIndexerOperation(IndexerBatchContext batchContext) |
protected java.util.List<ItemModel> |
executeIndexerQuery(FacetSearchConfig facetSearchConfig,
IndexedType indexedType,
java.util.List<PK> pks) |
FacetSearchConfig |
getFacetSearchConfig() |
Index |
getIndex() |
java.util.Collection<IndexedProperty> |
getIndexedProperties() |
IndexedType |
getIndexedType() |
Indexer |
getIndexer() |
IndexerBatchContextFactory |
getIndexerBatchContextFactory() |
java.util.Map<java.lang.String,java.lang.String> |
getIndexerHints() |
IndexerQueriesExecutor |
getIndexerQueriesExecutor() |
IndexOperation |
getIndexOperation() |
long |
getIndexOperationId() |
java.util.List<PK> |
getPks() |
boolean |
isExternalIndexOperation() |
void |
setExternalIndexOperation(boolean externalIndexOperation)
Sets the external index operation to be used.
|
void |
setFacetSearchConfig(FacetSearchConfig facetSearchConfig)
Sets the facet search config to be used.
|
void |
setIndex(Index index)
Sets the index to be used
|
void |
setIndexedProperties(java.util.Collection<IndexedProperty> indexedProperties)
Sets the indexed properties to be used
|
void |
setIndexedType(IndexedType indexedType)
Sets the indexed type to be used
|
void |
setIndexer(Indexer indexer) |
void |
setIndexerBatchContextFactory(IndexerBatchContextFactory<?> indexerBatchContextFactory) |
void |
setIndexerHints(java.util.Map<java.lang.String,java.lang.String> indexerHints)
Sets the indexer hints to be used
|
void |
setIndexerQueriesExecutor(IndexerQueriesExecutor indexerQueriesExecutor) |
void |
setIndexOperation(IndexOperation indexOperation)
Sets the index operation to be used
|
void |
setIndexOperationId(long indexOperationId)
Sets the indexed operation id to be used
|
void |
setPks(java.util.List<PK> pks)
Sets the pks to be used
|
protected void |
validateRequiredFields() |
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 java.util.Collection<IndexedProperty> getIndexedProperties()
public void setIndexedProperties(java.util.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 java.util.Map<java.lang.String,java.lang.String> getIndexerHints()
public void setIndexerHints(java.util.Map<java.lang.String,java.lang.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 java.util.List<PK> getPks()
public void setPks(java.util.List<PK> pks)
IndexerBatchStrategysetPks in interface IndexerBatchStrategypks - - the pks to be usedpublic void execute()
throws java.lang.InterruptedException,
IndexerException
IndexerBatchStrategyexecute in interface IndexerBatchStrategyjava.lang.InterruptedException - throw if a thread is interruptedIndexerException - if an error occurs during the strategy executionprotected void validateRequiredFields()
protected java.util.List<ItemModel> executeIndexerQuery(FacetSearchConfig facetSearchConfig, IndexedType indexedType, java.util.List<PK> pks) throws IndexerException
IndexerExceptionprotected void executeIndexerOperation(IndexerBatchContext batchContext) throws IndexerException, java.lang.InterruptedException
IndexerExceptionjava.lang.InterruptedExceptionCopyright © 2018 SAP SE. All Rights Reserved.