public class CommitModeListener extends Object implements IndexerListener, IndexerBatchListener
| Modifier and Type | Field and Description |
|---|---|
protected static String |
COMMIT_MODE_HINT |
protected static CommitMode |
DEFAULT_COMMIT_MODE |
| Constructor and Description |
|---|
CommitModeListener() |
| Modifier and Type | Method and Description |
|---|---|
void |
afterBatch(IndexerBatchContext batchContext)
Handles a notification that the processing for a particular
IndexerBatchContext has just been completed. |
void |
afterBatchError(IndexerBatchContext batchContext)
Handles a notification that the processing for a particular
IndexerBatchContext failed. |
void |
afterIndex(IndexerContext context)
Handles a notification that the indexing for a particular
IndexerContext has just been completed. |
void |
afterIndexError(IndexerContext context)
Handles a notification that the indexing for a particular
IndexerContext failed. |
void |
beforeBatch(IndexerBatchContext batchContext)
Handles a notification that the processing for a particular
IndexerBatchContext is about to begin. |
void |
beforeIndex(IndexerContext context)
Handles a notification that the indexing for a particular
IndexerContext is about to begin. |
protected void |
commit(FacetSearchConfig facetSearchConfig,
IndexedType indexedType,
Index index,
SolrSearchProvider.CommitType commitType) |
SolrSearchProviderFactory |
getSolrSearchProviderFactory() |
protected CommitMode |
resolveCommitMode(FacetSearchConfig facetSearchConfig,
Map<String,String> indexerHints) |
void |
setSolrSearchProviderFactory(SolrSearchProviderFactory solrSearchProviderFactory) |
protected static final CommitMode DEFAULT_COMMIT_MODE
protected static final String COMMIT_MODE_HINT
public void beforeIndex(IndexerContext context) throws IndexerException
IndexerListenerIndexerContext is about to begin.beforeIndex in interface IndexerListenercontext - - the IndexerContextIndexerException - if an error occurspublic void afterIndex(IndexerContext context) throws IndexerException
IndexerListenerIndexerContext has just been completed.afterIndex in interface IndexerListenercontext - - the IndexerContextIndexerException - if an error occurspublic void afterIndexError(IndexerContext context) throws IndexerException
IndexerListenerIndexerContext failed.afterIndexError in interface IndexerListenercontext - - the IndexerContextIndexerException - if an error occurspublic void beforeBatch(IndexerBatchContext batchContext) throws IndexerException
IndexerBatchListenerIndexerBatchContext is about to begin.beforeBatch in interface IndexerBatchListenerbatchContext - - the IndexerBatchContextIndexerException - if an error occurspublic void afterBatch(IndexerBatchContext batchContext) throws IndexerException
IndexerBatchListenerIndexerBatchContext has just been completed.afterBatch in interface IndexerBatchListenerbatchContext - - the IndexerBatchContextIndexerException - if an error occurspublic void afterBatchError(IndexerBatchContext batchContext) throws IndexerException
IndexerBatchListenerIndexerBatchContext failed.afterBatchError in interface IndexerBatchListenerbatchContext - - the IndexerBatchContextIndexerException - if an error occursprotected CommitMode resolveCommitMode(FacetSearchConfig facetSearchConfig, Map<String,String> indexerHints)
protected void commit(FacetSearchConfig facetSearchConfig, IndexedType indexedType, Index index, SolrSearchProvider.CommitType commitType) throws IndexerException
IndexerExceptionpublic void setSolrSearchProviderFactory(SolrSearchProviderFactory solrSearchProviderFactory)
public SolrSearchProviderFactory getSolrSearchProviderFactory()
Copyright © 2017 SAP SE. All Rights Reserved.