public class RefCountingIndexReader extends org.apache.lucene.index.FilterIndexReader implements ReleaseableIndexReader
RefCountingIndexReader...| Constructor and Description |
|---|
RefCountingIndexReader(org.apache.lucene.index.IndexReader in) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
doClose() |
int |
getRefCount() |
void |
release()
Releases this index reader and potentially frees resources.
|
directory, docFreq, doCommit, document, doDelete, doSetNorm, doUndeleteAll, getDeletesCacheKey, getFieldCacheKey, getFieldNames, getSequentialSubReaders, getTermFreqVector, getTermFreqVector, getTermFreqVector, getTermFreqVectors, getVersion, hasDeletions, hasNorms, isCurrent, isDeleted, isOptimized, maxDoc, norms, norms, numDocs, termDocs, termDocs, termPositions, terms, termsacquireWriteLock, clone, clone, close, commit, commit, decRef, deleteDocument, deleteDocuments, document, ensureOpen, flush, flush, getCommitUserData, getCommitUserData, getCurrentVersion, getIndexCommit, getTermInfosIndexDivisor, getUniqueTermCount, incRef, indexExists, lastModified, listCommits, main, numDeletedDocs, open, open, open, open, open, open, open, reopen, reopen, reopen, setNorm, setNorm, termPositions, undeleteAllpublic RefCountingIndexReader(org.apache.lucene.index.IndexReader in)
public int getRefCount()
getRefCount in class org.apache.lucene.index.IndexReaderpublic final void release()
throws IOException
IndexReader.close() this method
does not necessarily close the index reader, but gives the implementation
the opportunity to do reference counting.release in interface ReleaseableIndexReaderIOException - if an error occurs while releasing the index reader.protected void doClose()
throws IOException
doClose in class org.apache.lucene.index.FilterIndexReaderIOExceptionCopyright © 2004-2012 The Apache Software Foundation. All Rights Reserved.