org.lexevs.dao.index.indexer
Class LuceneLoaderCodeIndexer

java.lang.Object
  extended by org.lexevs.dao.index.indexer.LuceneLoaderCode
      extended by org.lexevs.dao.index.indexer.LuceneLoaderCodeIndexer
All Implemented Interfaces:
EntityIndexer

public class LuceneLoaderCodeIndexer
extends LuceneLoaderCode
implements EntityIndexer

The Class LuceneLoaderCodeIndexer.

Author:
Kevin Peterson

Nested Class Summary
 
Nested classes/interfaces inherited from class org.lexevs.dao.index.indexer.LuceneLoaderCode
LuceneLoaderCode.Qualifier
 
Field Summary
 
Fields inherited from class org.lexevs.dao.index.indexer.LuceneLoaderCode
analyzer_, CODING_SCHEME_ID_FIELD, CODING_SCHEME_NAME_FIELD, CODING_SCHEME_URI_VERSION_CODE_NAMESPACE_KEY_FIELD, CODING_SCHEME_URI_VERSION_KEY_FIELD, CODING_SCHEME_VERSION_FIELD, createBoundryDocuments, DOUBLE_METAPHONE_PREFIX, DOUBLE_METAPHONE_PROPERTY_VALUE_FIELD, doubleMetaphoneEnabled_, ENTITY_UID_FIELD, lexGridWhiteSpaceIndexSet, LITERAL_AND_REVERSE_PREFIX, LITERAL_AND_REVERSE_PROPERTY_VALUE_FIELD, LITERAL_PREFIX, LITERAL_PROPERTY_VALUE_FIELD, literalAnalyzer, logger, NORM_PREFIX, NORM_PROPERTY_VALUE_FIELD, normEnabled_, PROPERTY_VALUE_FIELD, QUALIFIER_NAME_VALUE_SPLIT_TOKEN, REVERSE_PREFIX, REVERSE_PROPERTY_VALUE_FIELD, STEMMING_PREFIX, STEMMING_PROPERTY_VALUE_FIELD, stemmingEnabled_, storeLexBIGMinimum, STRING_TOKEINZER_TOKEN, UNTOKENIZED_LOWERCASE_PROPERTY_VALUE_FIELD, useCompoundFile_
 
Constructor Summary
LuceneLoaderCodeIndexer()
          Instantiates a new lucene loader code indexer.
 
Method Summary
 java.lang.String getCurrentIndexVersion()
          Gets the current index version.
protected  Presentation getDefaultPresentation(Entity entity)
           
 LexEvsIndexFormatVersion getIndexerFormatVersion()
           
 LuceneEntityDao getLuceneEntityDao()
           
 SystemResourceService getSystemResourceService()
          Gets the system resource service.
 SystemVariables getSystemVariables()
          Gets the system variables.
 java.util.List<org.apache.lucene.document.Document> indexEntity(java.lang.String codingSchemeUri, java.lang.String codingSchemeVersion, Entity entity)
          Index entity.
protected  org.apache.lucene.document.Document indexEntity(java.lang.String codingSchemeUri, java.lang.String codingSchemeVersion, Entity entity, Property prop)
          Index entity.
 void setCurrentIndexVersion(java.lang.String currentIndexVersion)
          Sets the current index version.
 void setLuceneEntityDao(LuceneEntityDao luceneEntityDao)
           
 void setSystemResourceService(SystemResourceService systemResourceService)
          Sets the system resource service.
 void setSystemVariables(SystemVariables systemVariables)
          Sets the system variables.
 
Methods inherited from class org.lexevs.dao.index.indexer.LuceneLoaderCode
addEntity, addEntityBoundryDocument, createCodingSchemeUriVersionCodeNamespaceKey, createCodingSchemeUriVersionKey, getAnalyzer, getAnaylzer, initIndexes, reverseTermsInPropertyValue
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.lexevs.dao.index.indexer.EntityIndexer
getAnalyzer
 

Constructor Detail

LuceneLoaderCodeIndexer

public LuceneLoaderCodeIndexer()
Instantiates a new lucene loader code indexer.

Method Detail

indexEntity

public java.util.List<org.apache.lucene.document.Document> indexEntity(java.lang.String codingSchemeUri,
                                                                       java.lang.String codingSchemeVersion,
                                                                       Entity entity)
Index entity.

Specified by:
indexEntity in interface EntityIndexer
Parameters:
codingSchemeUri - the coding scheme uri
codingSchemeVersion - the coding scheme version
entity - the entity

getDefaultPresentation

protected Presentation getDefaultPresentation(Entity entity)

indexEntity

protected org.apache.lucene.document.Document indexEntity(java.lang.String codingSchemeUri,
                                                          java.lang.String codingSchemeVersion,
                                                          Entity entity,
                                                          Property prop)
                                                   throws java.lang.Exception
Index entity.

Parameters:
codingSchemeUri - the coding scheme uri
codingSchemeVersion - the coding scheme version
entity - the entity
prop - the prop
Throws:
java.lang.Exception - the exception

getSystemResourceService

public SystemResourceService getSystemResourceService()
Gets the system resource service.

Returns:
the system resource service

setSystemResourceService

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

Parameters:
systemResourceService - the new 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

getLuceneEntityDao

public LuceneEntityDao getLuceneEntityDao()
Overrides:
getLuceneEntityDao in class LuceneLoaderCode

setLuceneEntityDao

public void setLuceneEntityDao(LuceneEntityDao luceneEntityDao)
Overrides:
setLuceneEntityDao in class LuceneLoaderCode

setCurrentIndexVersion

public void setCurrentIndexVersion(java.lang.String currentIndexVersion)
Sets the current index version.

Parameters:
currentIndexVersion - the new current index version

getCurrentIndexVersion

public java.lang.String getCurrentIndexVersion()
Gets the current index version.

Returns:
the current index version

getIndexerFormatVersion

public LexEvsIndexFormatVersion getIndexerFormatVersion()
Specified by:
getIndexerFormatVersion in interface EntityIndexer

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.