org.lexevs.dao.index.indexer
Class EntityBatchingIndexCreator

java.lang.Object
  extended by org.lexevs.dao.index.indexer.EntityBatchingIndexCreator
All Implemented Interfaces:
IndexCreator

public class EntityBatchingIndexCreator
extends java.lang.Object
implements IndexCreator

The Class EntityBatchingIndexCreator.

Author:
Kevin Peterson

Nested Class Summary
 
Nested classes/interfaces inherited from interface org.lexevs.dao.index.indexer.IndexCreator
IndexCreator.EntityIndexerProgressCallback
 
Constructor Summary
EntityBatchingIndexCreator()
           
 
Method Summary
protected  void addIndexMetadata(AbsoluteCodingSchemeVersionReference reference, java.lang.String indexName, java.lang.String indexVersion)
          Adds the index metadata.
 org.apache.lucene.analysis.Analyzer getAnalyzer()
           
 int getBatchSize()
          Gets the batch size.
 EntityIndexer getEntityIndexer()
           
 EntityService getEntityService()
          Gets the entity service.
 IndexDaoManager getIndexDaoManager()
           
protected  java.lang.String getIndexName(AbsoluteCodingSchemeVersionReference reference)
           
 LgLoggerIF getLogger()
           
 MetaData getMetaData()
           
 SystemResourceService getSystemResourceService()
          Gets the system resource service.
 SystemVariables getSystemVariables()
          Gets the system variables.
 java.lang.String index(AbsoluteCodingSchemeVersionReference reference)
          Index.
 java.lang.String index(AbsoluteCodingSchemeVersionReference reference, IndexCreator.EntityIndexerProgressCallback callback)
           
 java.lang.String index(AbsoluteCodingSchemeVersionReference reference, IndexCreator.EntityIndexerProgressCallback callback, boolean onlyRegister)
           
 void setAnalyzer(org.apache.lucene.analysis.Analyzer analyzer)
           
 void setBatchSize(int batchSize)
          Sets the batch size.
 void setEntityIndexer(EntityIndexer entityIndexer)
           
 void setEntityService(EntityService entityService)
          Sets the entity service.
 void setIndexDaoManager(IndexDaoManager indexDaoManager)
           
 void setLogger(LgLoggerIF logger)
           
 void setMetaData(MetaData metaData)
           
 void setSystemResourceService(SystemResourceService systemResourceService)
          Sets the system resource service.
 void setSystemVariables(SystemVariables systemVariables)
          Sets the system variables.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EntityBatchingIndexCreator

public EntityBatchingIndexCreator()
Method Detail

index

public java.lang.String index(AbsoluteCodingSchemeVersionReference reference)
Description copied from interface: IndexCreator
Index.

Specified by:
index in interface IndexCreator
Parameters:
reference - the reference

index

public java.lang.String index(AbsoluteCodingSchemeVersionReference reference,
                              IndexCreator.EntityIndexerProgressCallback callback)
Specified by:
index in interface IndexCreator

index

public java.lang.String index(AbsoluteCodingSchemeVersionReference reference,
                              IndexCreator.EntityIndexerProgressCallback callback,
                              boolean onlyRegister)
Specified by:
index in interface IndexCreator

addIndexMetadata

protected void addIndexMetadata(AbsoluteCodingSchemeVersionReference reference,
                                java.lang.String indexName,
                                java.lang.String indexVersion)
Adds the index metadata.

Parameters:
reference - the reference
indexName - the index name
indexVersion - the index version

getIndexName

protected java.lang.String getIndexName(AbsoluteCodingSchemeVersionReference reference)

setEntityService

public void setEntityService(EntityService entityService)
Sets the entity service.

Parameters:
entityService - the new entity service

getEntityService

public EntityService getEntityService()
Gets the entity service.

Returns:
the entity service

getBatchSize

public int getBatchSize()
Gets the batch size.

Returns:
the batch size

setBatchSize

public void setBatchSize(int batchSize)
Sets the batch size.

Parameters:
batchSize - the new batch size

setSystemResourceService

public void setSystemResourceService(SystemResourceService systemResourceService)
Sets the system resource service.

Parameters:
systemResourceService - the new system resource service

getSystemResourceService

public SystemResourceService getSystemResourceService()
Gets the system resource service.

Returns:
the system resource service

getSystemVariables

public SystemVariables getSystemVariables()
Gets the system variables.

Returns:
the system variables

setSystemVariables

public void setSystemVariables(SystemVariables systemVariables)
Sets the system variables.

Parameters:
systemVariables - the new system variables

getAnalyzer

public org.apache.lucene.analysis.Analyzer getAnalyzer()

setAnalyzer

public void setAnalyzer(org.apache.lucene.analysis.Analyzer analyzer)

setLogger

public void setLogger(LgLoggerIF logger)

getLogger

public LgLoggerIF getLogger()

getEntityIndexer

public EntityIndexer getEntityIndexer()

setEntityIndexer

public void setEntityIndexer(EntityIndexer entityIndexer)

setMetaData

public void setMetaData(MetaData metaData)

getMetaData

public MetaData getMetaData()

setIndexDaoManager

public void setIndexDaoManager(IndexDaoManager indexDaoManager)

getIndexDaoManager

public IndexDaoManager getIndexDaoManager()

Copyright: (c) 2004-2006 Mayo Foundation for Medical Education and Research (MFMER). All rights reserved. MAYO, MAYO CLINIC, and the triple-shield Mayo logo are trademarks and service marks of MFMER.