eu.etaxonomy.cdm.api.service.search
Class CdmMassIndexer
java.lang.Object
eu.etaxonomy.cdm.api.service.search.CdmMassIndexer
- All Implemented Interfaces:
- ICdmMassIndexer
@Component
@Transactional
public class CdmMassIndexer
- extends Object
- implements ICdmMassIndexer
- Author:
- Andreas Kohlbecker
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
logger
public static final Logger logger
transactionManager
public org.springframework.orm.hibernate4.HibernateTransactionManager transactionManager
CdmMassIndexer
public CdmMassIndexer()
setTransactionManager
@Autowired
public void setTransactionManager(org.springframework.transaction.PlatformTransactionManager transactionManager)
getSession
protected org.hibernate.Session getSession()
reindex
protected <T extends CdmBase> void reindex(Class<T> type,
IProgressMonitor monitor)
createDictionary
protected <T extends CdmBase> void createDictionary(Class<T> type,
IProgressMonitor monitor)
- Parameters:
type - monitor -
purge
protected <T extends CdmBase> void purge(Class<T> type,
IProgressMonitor monitor)
reindex
public void reindex(IProgressMonitor monitor)
- Description copied from interface:
ICdmMassIndexer
- Reindex all cdm entities listed in
ICdmMassIndexer.indexedClasses().
Re-indexing will not purge the index.
- Specified by:
reindex in interface ICdmMassIndexer
- Parameters:
monitor - TODO
createDictionary
public void createDictionary(IProgressMonitor monitor)
- Description copied from interface:
ICdmMassIndexer
- Create (spell-checking) dictionary listed in
ICdmMassIndexer.dictionaryClasses().
This action will not purge the dictionary.
- Specified by:
createDictionary in interface ICdmMassIndexer
- Parameters:
monitor - TODO
optimize
protected void optimize(IProgressMonitor monitor)
purge
public void purge(IProgressMonitor monitor)
- Description copied from interface:
ICdmMassIndexer
- This will wipe out the index.
- Specified by:
purge in interface ICdmMassIndexer
indexedClasses
public Class[] indexedClasses()
- Specified by:
indexedClasses in interface ICdmMassIndexer
- Returns:
dictionaryClasses
public Class[] dictionaryClasses()
- Specified by:
dictionaryClasses in interface ICdmMassIndexer
- Returns:
Copyright © 2007-2013 EDIT. All Rights Reserved.