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(IndexHoldersCache indexHoldersCache, String subIndex, IndexSearcher indexSearcher)
           
 
Method Summary
 boolean acquire()
           
 IndexReader getIndexReader()
           
 IndexSearcher getIndexSearcher()
           
 long getLastCacheInvalidation()
           
 String getSubIndex()
           
 boolean isInvalidated()
           
 void markForClose()
           
 void markLastCacheInvalidation()
           
 void release()
           
 void setInvalidated(boolean invalidated)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LuceneIndexHolder

public LuceneIndexHolder(IndexHoldersCache indexHoldersCache,
                         String subIndex,
                         IndexSearcher indexSearcher)
Method Detail

getIndexSearcher

public IndexSearcher getIndexSearcher()

getIndexReader

public IndexReader getIndexReader()

getSubIndex

public String getSubIndex()

acquire

public boolean acquire()

release

public void release()

markForClose

public void markForClose()

isInvalidated

public boolean isInvalidated()

setInvalidated

public void setInvalidated(boolean invalidated)

getLastCacheInvalidation

public long getLastCacheInvalidation()

markLastCacheInvalidation

public void markLastCacheInvalidation()


Copyright (c) 2004-2009 The Compass Project.