org.apache.jackrabbit.core.query.lucene
Class RefCountingIndexReader

java.lang.Object
  extended by org.apache.lucene.index.IndexReader
      extended by org.apache.lucene.index.FilterIndexReader
          extended by org.apache.jackrabbit.core.query.lucene.RefCountingIndexReader
All Implemented Interfaces:
ReleaseableIndexReader

public class RefCountingIndexReader
extends org.apache.lucene.index.FilterIndexReader
implements ReleaseableIndexReader

RefCountingIndexReader...


Nested Class Summary
 
Nested classes/interfaces inherited from class org.apache.lucene.index.FilterIndexReader
org.apache.lucene.index.FilterIndexReader.FilterTermDocs, org.apache.lucene.index.FilterIndexReader.FilterTermEnum, org.apache.lucene.index.FilterIndexReader.FilterTermPositions
 
Nested classes/interfaces inherited from class org.apache.lucene.index.IndexReader
org.apache.lucene.index.IndexReader.FieldOption
 
Field Summary
 
Fields inherited from class org.apache.lucene.index.FilterIndexReader
in
 
Fields inherited from class org.apache.lucene.index.IndexReader
hasChanges
 
Constructor Summary
RefCountingIndexReader(org.apache.lucene.index.IndexReader in)
           
 
Method Summary
protected  void doClose()
           
 void release()
          Releases this index reader and potentially frees resources.
 
Methods inherited from class org.apache.lucene.index.FilterIndexReader
directory, docFreq, doCommit, document, doDelete, doSetNorm, doUndeleteAll, getFieldNames, getTermFreqVector, getTermFreqVector, getTermFreqVector, getTermFreqVectors, getVersion, hasDeletions, hasNorms, isCurrent, isDeleted, isOptimized, maxDoc, norms, norms, numDocs, termDocs, termPositions, terms, terms
 
Methods inherited from class org.apache.lucene.index.IndexReader
acquireWriteLock, close, commit, decRef, deleteDocument, deleteDocuments, document, ensureOpen, flush, getCurrentVersion, getCurrentVersion, getCurrentVersion, getIndexCommit, getTermInfosIndexDivisor, incRef, indexExists, indexExists, indexExists, isLocked, isLocked, lastModified, lastModified, lastModified, listCommits, main, numDeletedDocs, open, open, open, open, open, open, open, open, open, reopen, setNorm, setNorm, setTermInfosIndexDivisor, termDocs, termPositions, undeleteAll, unlock
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RefCountingIndexReader

public RefCountingIndexReader(org.apache.lucene.index.IndexReader in)
Method Detail

release

public final void release()
                   throws IOException
Releases this index reader and potentially frees resources. In contrast to IndexReader.close() this method does not necessarily close the index reader, but gives the implementation the opportunity to do reference counting.

Specified by:
release in interface ReleaseableIndexReader
Throws:
IOException - if an error occurs while releasing the index reader.

doClose

protected void doClose()
                throws IOException
Overrides:
doClose in class org.apache.lucene.index.FilterIndexReader
Throws:
IOException


Copyright © 2004-2010 The Apache Software Foundation. All Rights Reserved.