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() |
org.apache.lucene.index.FieldInfos |
getFieldInfos() |
int |
getRefCountJr() |
org.apache.lucene.index.IndexReader[] |
getSequentialSubReaders() |
void |
release()
Releases this index reader and potentially frees resources.
|
directory, docFreq, doCommit, document, doDelete, doSetNorm, doUndeleteAll, getCommitUserData, getCoreCacheKey, getDeletesCacheKey, getIndexCommit, getTermFreqVector, getTermFreqVector, getTermFreqVector, getTermFreqVectors, getTermInfosIndexDivisor, getUniqueTermCount, getVersion, hasDeletions, hasNorms, isCurrent, isDeleted, isOptimized, maxDoc, norms, norms, numDocs, termDocs, termDocs, termPositions, terms, terms, toStringacquireWriteLock, addReaderClosedListener, clone, clone, close, commit, commit, decRef, deleteDocument, deleteDocuments, document, doOpenIfChanged, doOpenIfChanged, doOpenIfChanged, doOpenIfChanged, ensureOpen, flush, flush, getCommitUserData, getCurrentVersion, getRefCount, incRef, indexExists, lastModified, listCommits, numDeletedDocs, open, open, open, open, open, open, open, open, open, open, open, openIfChanged, openIfChanged, openIfChanged, openIfChanged, removeReaderClosedListener, reopen, reopen, reopen, reopen, setNorm, setNorm, termPositions, tryIncRef, undeleteAllpublic RefCountingIndexReader(org.apache.lucene.index.IndexReader in)
public int getRefCountJr()
public 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.public org.apache.lucene.index.IndexReader[] getSequentialSubReaders()
getSequentialSubReaders in class org.apache.lucene.index.FilterIndexReaderpublic org.apache.lucene.index.FieldInfos getFieldInfos()
getFieldInfos in class org.apache.lucene.index.FilterIndexReaderprotected void doClose()
throws IOException
doClose in class org.apache.lucene.index.FilterIndexReaderIOExceptionCopyright © 2004–2024 The Apache Software Foundation. All rights reserved.