org.lexevs.dao.index.lucene.v2010.entity
Class SingleTemplateDisposableLuceneCommonEntityDao

java.lang.Object
  extended by org.lexevs.dao.index.access.AbstractBaseIndexDao
      extended by org.lexevs.dao.index.lucene.AbstractBaseLuceneIndexTemplateDao
          extended by org.lexevs.dao.index.lucene.v2010.entity.SingleTemplateDisposableLuceneCommonEntityDao
All Implemented Interfaces:
CommonEntityDao, LexEvsIndexFormatVersionAwareDao

public class SingleTemplateDisposableLuceneCommonEntityDao
extends AbstractBaseLuceneIndexTemplateDao
implements CommonEntityDao

The Class LuceneEntityDao.

Author:
Kevin Peterson

Constructor Summary
SingleTemplateDisposableLuceneCommonEntityDao(IndexRegistry indexRegistry, LuceneIndexTemplate template, java.util.List<AbsoluteCodingSchemeVersionReference> references)
           
 
Method Summary
 java.util.List<LexEvsIndexFormatVersion> doGetSupportedLexEvsIndexFormatVersions()
          Do get supported lex evs index format versions.
 org.apache.lucene.document.Document getDocumentById(int id)
           
 java.lang.String getIndexName()
           
protected  LuceneIndexTemplate getLuceneIndexTemplate(java.lang.String codingSchemeUri, java.lang.String version)
           
 void optimizeIndex()
           
 java.util.List<org.apache.lucene.search.ScoreDoc> query(org.apache.lucene.search.Query query)
           
 
Methods inherited from class org.lexevs.dao.index.lucene.AbstractBaseLuceneIndexTemplateDao
createBoundaryDocFilter, getBoundaryDocFilterForCodingScheme, getBoundaryDocFilterForCodingScheme, getCodingSchemeFilterForCodingScheme, getCodingSchemeFilterForCodingScheme, getIndexRegistry, setIndexRegistry
 
Methods inherited from class org.lexevs.dao.index.access.AbstractBaseIndexDao
supportsLexEvsIndexFormatVersion
 
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.access.LexEvsIndexFormatVersionAwareDao
supportsLexEvsIndexFormatVersion
 

Constructor Detail

SingleTemplateDisposableLuceneCommonEntityDao

public SingleTemplateDisposableLuceneCommonEntityDao(IndexRegistry indexRegistry,
                                                     LuceneIndexTemplate template,
                                                     java.util.List<AbsoluteCodingSchemeVersionReference> references)
Method Detail

getDocumentById

public org.apache.lucene.document.Document getDocumentById(int id)
Specified by:
getDocumentById in interface CommonEntityDao

getIndexName

public java.lang.String getIndexName()
Specified by:
getIndexName in interface CommonEntityDao

query

public java.util.List<org.apache.lucene.search.ScoreDoc> query(org.apache.lucene.search.Query query)
Specified by:
query in interface CommonEntityDao

optimizeIndex

public void optimizeIndex()
Specified by:
optimizeIndex in interface CommonEntityDao

getLuceneIndexTemplate

protected LuceneIndexTemplate getLuceneIndexTemplate(java.lang.String codingSchemeUri,
                                                     java.lang.String version)
Specified by:
getLuceneIndexTemplate in class AbstractBaseLuceneIndexTemplateDao

doGetSupportedLexEvsIndexFormatVersions

public java.util.List<LexEvsIndexFormatVersion> doGetSupportedLexEvsIndexFormatVersions()
Description copied from class: AbstractBaseIndexDao
Do get supported lex evs index format versions.

Specified by:
doGetSupportedLexEvsIndexFormatVersions in class AbstractBaseIndexDao
Returns:
the list< lex evs index format version>

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.