org.sakaiproject.search.journal.impl
Class RefCountIndexSearcher
java.lang.Object
org.apache.lucene.search.Searcher
org.apache.lucene.search.IndexSearcher
org.sakaiproject.search.journal.impl.RefCountIndexSearcher
- All Implemented Interfaces:
- org.apache.lucene.search.Searchable, IndexCloser, ThreadBinder, org.sakaiproject.thread_local.api.ThreadBound
public class RefCountIndexSearcher
- extends org.apache.lucene.search.IndexSearcher
- implements org.sakaiproject.thread_local.api.ThreadBound, ThreadBinder, IndexCloser
- Author:
- ieb
| Methods inherited from class org.apache.lucene.search.IndexSearcher |
doc, doc, docFreq, explain, gatherSubReaders, getIndexReader, maxDoc, rewrite, search, search, search, search, setDefaultFieldSortScoring |
| Methods inherited from class org.apache.lucene.search.Searcher |
createWeight, docFreqs, explain, getSimilarity, search, search, search, search, search, search, search, search, search, search, search, search, setSimilarity |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RefCountIndexSearcher
public RefCountIndexSearcher(org.apache.lucene.index.IndexReader indexReader,
JournaledFSIndexStorage storage)
- Parameters:
storage - ir -
close
public void close()
throws IOException
- Specified by:
close in interface org.apache.lucene.search.Searchable- Overrides:
close in class org.apache.lucene.search.IndexSearcher
- Throws:
IOException
unbind
public void unbind()
- Specified by:
unbind in interface org.sakaiproject.thread_local.api.ThreadBound
bind
public void bind(org.sakaiproject.thread_local.api.ThreadLocalManager tlm)
- Specified by:
bind in interface ThreadBinder
doFinalClose
public boolean doFinalClose()
- Specified by:
doFinalClose in interface IndexCloser
canClose
public boolean canClose()
- Specified by:
canClose in interface IndexCloser
forceClose
public boolean forceClose()
- Specified by:
forceClose in interface IndexCloser
addParent
public void addParent(Object searcher)
- Specified by:
addParent in interface IndexCloser
removeParent
public void removeParent(Object searcher)
- Specified by:
removeParent in interface IndexCloser
getOpened
public static int getOpened()
- Returns:
getName
public String getName()
- Specified by:
getName in interface IndexCloser
- Returns:
Copyright © 2003-2012 Sakai Project. All Rights Reserved.