org.compass.core.lucene.engine.manager
Class LuceneIndexHolder

java.lang.Object
  extended by org.compass.core.lucene.engine.manager.LuceneIndexHolder

public class LuceneIndexHolder
extends Object

Author:
kimchy

Constructor Summary
LuceneIndexHolder(String subIndex, Directory dir)
           
LuceneIndexHolder(String subIndex, IndexSearcher indexSearcher)
           
 
Method Summary
 void acquire()
           
 IndexReader getIndexReader()
           
 IndexSearcher getIndexSearcher()
           
 long getLastCacheInvalidation()
           
 String getSubIndex()
           
 void markForClose()
           
 void refresh(IndexReader indexReader)
           
 void release()
           
 void setLastCacheInvalidation(long lastCacheInvalidation)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LuceneIndexHolder

public LuceneIndexHolder(String subIndex,
                         Directory dir)
                  throws IOException
Throws:
IOException

LuceneIndexHolder

public LuceneIndexHolder(String subIndex,
                         IndexSearcher indexSearcher)
Method Detail

refresh

public void refresh(IndexReader indexReader)

getIndexSearcher

public IndexSearcher getIndexSearcher()

getIndexReader

public IndexReader getIndexReader()

getSubIndex

public String getSubIndex()

acquire

public void acquire()

release

public void release()

markForClose

public void markForClose()

getLastCacheInvalidation

public long getLastCacheInvalidation()

setLastCacheInvalidation

public void setLastCacheInvalidation(long lastCacheInvalidation)


Copyright (c) 2004-2008 The Compass Project.