| Constructor and Description |
|---|
SolrIndexReader(org.apache.lucene.index.IndexReader in,
SolrIndexReader parent,
int base)
Recursively wrap an IndexReader in SolrIndexReader instances.
|
| Modifier and Type | Method and Description |
|---|---|
void |
associateInfo(SolrIndexReader source)
Copies SolrReaderInfo instances from the source to this SolrIndexReader
|
Object |
clone() |
org.apache.lucene.index.IndexReader |
clone(boolean openReadOnly) |
org.apache.lucene.store.Directory |
directory() |
int |
docFreq(org.apache.lucene.index.Term t) |
protected void |
doClose() |
org.apache.lucene.document.Document |
document(int n,
org.apache.lucene.document.FieldSelector fieldSelector) |
protected void |
doDelete(int n) |
protected void |
doSetNorm(int d,
String f,
byte b) |
protected void |
doUndeleteAll() |
boolean |
equals(Object o) |
int |
getBase()
returns the docid offset within the parent reader
|
Map |
getCommitUserData() |
Object |
getCoreCacheKey() |
org.apache.lucene.index.FieldInfos |
getFieldInfos() |
org.apache.lucene.index.IndexCommit |
getIndexCommit() |
int[] |
getLeafOffsets()
Return the doc id offsets for each leaf reader.
|
SolrIndexReader[] |
getLeafReaders()
return the leaf readers in this reader tree, or an array of size 1 containing "this" if "this" is a leaf
|
SolrIndexReader |
getParent()
returns the parent reader, or null of none
|
SolrIndexReader[] |
getSequentialSubReaders() |
org.apache.lucene.index.TermFreqVector |
getTermFreqVector(int docNumber,
String field) |
void |
getTermFreqVector(int docNumber,
String field,
org.apache.lucene.index.TermVectorMapper mapper) |
void |
getTermFreqVector(int docNumber,
org.apache.lucene.index.TermVectorMapper mapper) |
org.apache.lucene.index.TermFreqVector[] |
getTermFreqVectors(int docNumber) |
int |
getTermInfosIndexDivisor() |
long |
getUniqueTermCount() |
long |
getVersion() |
org.apache.lucene.index.IndexReader |
getWrappedReader() |
boolean |
hasDeletions() |
int |
hashCode() |
boolean |
hasNorms(String field) |
boolean |
isCurrent() |
boolean |
isDeleted(int n) |
boolean |
isOptimized() |
int |
maxDoc() |
byte[] |
norms(String f) |
void |
norms(String f,
byte[] bytes,
int offset) |
int |
numDocs() |
static int |
readerIndex(int doc,
int[] offsets)
Given an array of IndexReader offsets, find which contains the given doc
|
SolrIndexReader |
reopen() |
SolrIndexReader |
reopen(boolean openReadOnly) |
org.apache.lucene.index.IndexReader |
reopen(org.apache.lucene.index.IndexCommit commit) |
org.apache.lucene.index.TermDocs |
termDocs() |
org.apache.lucene.index.TermDocs |
termDocs(org.apache.lucene.index.Term term) |
org.apache.lucene.index.TermPositions |
termPositions() |
org.apache.lucene.index.TermEnum |
terms() |
org.apache.lucene.index.TermEnum |
terms(org.apache.lucene.index.Term t) |
String |
toString() |
acquireWriteLock, addReaderClosedListener, 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, setNorm, setNorm, termPositions, tryIncRef, undeleteAllpublic SolrIndexReader(org.apache.lucene.index.IndexReader in,
SolrIndexReader parent,
int base)
in - the reader to wrapparent - the parent, if any (null if none)base - the docid offset in the parent (0 if top level)public SolrIndexReader[] getLeafReaders()
public int[] getLeafOffsets()
public static int readerIndex(int doc,
int[] offsets)
public String toString()
toString in class org.apache.lucene.index.FilterIndexReaderpublic void associateInfo(SolrIndexReader source)
public org.apache.lucene.index.IndexReader getWrappedReader()
public SolrIndexReader getParent()
public int getBase()
public org.apache.lucene.store.Directory directory()
directory in class org.apache.lucene.index.FilterIndexReaderpublic org.apache.lucene.index.TermFreqVector[] getTermFreqVectors(int docNumber)
throws IOException
getTermFreqVectors in class org.apache.lucene.index.FilterIndexReaderIOExceptionpublic org.apache.lucene.index.TermFreqVector getTermFreqVector(int docNumber,
String field)
throws IOException
getTermFreqVector in class org.apache.lucene.index.FilterIndexReaderIOExceptionpublic void getTermFreqVector(int docNumber,
String field,
org.apache.lucene.index.TermVectorMapper mapper)
throws IOException
getTermFreqVector in class org.apache.lucene.index.FilterIndexReaderIOExceptionpublic void getTermFreqVector(int docNumber,
org.apache.lucene.index.TermVectorMapper mapper)
throws IOException
getTermFreqVector in class org.apache.lucene.index.FilterIndexReaderIOExceptionpublic int numDocs()
numDocs in class org.apache.lucene.index.FilterIndexReaderpublic int maxDoc()
maxDoc in class org.apache.lucene.index.FilterIndexReaderpublic org.apache.lucene.document.Document document(int n,
org.apache.lucene.document.FieldSelector fieldSelector)
throws org.apache.lucene.index.CorruptIndexException,
IOException
document in class org.apache.lucene.index.FilterIndexReaderorg.apache.lucene.index.CorruptIndexExceptionIOExceptionpublic boolean isDeleted(int n)
isDeleted in class org.apache.lucene.index.FilterIndexReaderpublic boolean hasDeletions()
hasDeletions in class org.apache.lucene.index.FilterIndexReaderprotected void doUndeleteAll()
throws org.apache.lucene.index.CorruptIndexException,
IOException
doUndeleteAll in class org.apache.lucene.index.FilterIndexReaderorg.apache.lucene.index.CorruptIndexExceptionIOExceptionpublic boolean hasNorms(String field) throws IOException
hasNorms in class org.apache.lucene.index.FilterIndexReaderIOExceptionpublic byte[] norms(String f) throws IOException
norms in class org.apache.lucene.index.FilterIndexReaderIOExceptionpublic void norms(String f, byte[] bytes, int offset) throws IOException
norms in class org.apache.lucene.index.FilterIndexReaderIOExceptionprotected void doSetNorm(int d,
String f,
byte b)
throws org.apache.lucene.index.CorruptIndexException,
IOException
doSetNorm in class org.apache.lucene.index.FilterIndexReaderorg.apache.lucene.index.CorruptIndexExceptionIOExceptionpublic org.apache.lucene.index.TermEnum terms()
throws IOException
terms in class org.apache.lucene.index.FilterIndexReaderIOExceptionpublic org.apache.lucene.index.TermEnum terms(org.apache.lucene.index.Term t)
throws IOException
terms in class org.apache.lucene.index.FilterIndexReaderIOExceptionpublic int docFreq(org.apache.lucene.index.Term t)
throws IOException
docFreq in class org.apache.lucene.index.FilterIndexReaderIOExceptionpublic org.apache.lucene.index.TermDocs termDocs()
throws IOException
termDocs in class org.apache.lucene.index.FilterIndexReaderIOExceptionpublic org.apache.lucene.index.TermDocs termDocs(org.apache.lucene.index.Term term)
throws IOException
termDocs in class org.apache.lucene.index.FilterIndexReaderIOExceptionpublic org.apache.lucene.index.TermPositions termPositions()
throws IOException
termPositions in class org.apache.lucene.index.FilterIndexReaderIOExceptionprotected void doDelete(int n)
throws org.apache.lucene.index.CorruptIndexException,
IOException
doDelete in class org.apache.lucene.index.FilterIndexReaderorg.apache.lucene.index.CorruptIndexExceptionIOExceptionprotected void doClose()
throws IOException
doClose in class org.apache.lucene.index.FilterIndexReaderIOExceptionpublic org.apache.lucene.index.FieldInfos getFieldInfos()
getFieldInfos in class org.apache.lucene.index.FilterIndexReaderpublic long getVersion()
getVersion in class org.apache.lucene.index.FilterIndexReaderpublic boolean isCurrent()
throws org.apache.lucene.index.CorruptIndexException,
IOException
isCurrent in class org.apache.lucene.index.FilterIndexReaderorg.apache.lucene.index.CorruptIndexExceptionIOExceptionpublic boolean isOptimized()
isOptimized in class org.apache.lucene.index.FilterIndexReaderpublic SolrIndexReader[] getSequentialSubReaders()
getSequentialSubReaders in class org.apache.lucene.index.FilterIndexReaderpublic org.apache.lucene.index.IndexReader reopen(org.apache.lucene.index.IndexCommit commit)
throws org.apache.lucene.index.CorruptIndexException,
IOException
reopen in class org.apache.lucene.index.IndexReaderorg.apache.lucene.index.CorruptIndexExceptionIOExceptionpublic Object clone()
clone in class org.apache.lucene.index.IndexReaderpublic org.apache.lucene.index.IndexReader clone(boolean openReadOnly)
throws org.apache.lucene.index.CorruptIndexException,
IOException
clone in class org.apache.lucene.index.IndexReaderorg.apache.lucene.index.CorruptIndexExceptionIOExceptionpublic Map getCommitUserData()
getCommitUserData in class org.apache.lucene.index.FilterIndexReaderpublic long getUniqueTermCount()
throws IOException
getUniqueTermCount in class org.apache.lucene.index.FilterIndexReaderIOExceptionpublic SolrIndexReader reopen(boolean openReadOnly) throws IOException
reopen in class org.apache.lucene.index.IndexReaderIOExceptionpublic SolrIndexReader reopen() throws org.apache.lucene.index.CorruptIndexException, IOException
reopen in class org.apache.lucene.index.IndexReaderorg.apache.lucene.index.CorruptIndexExceptionIOExceptionpublic org.apache.lucene.index.IndexCommit getIndexCommit()
throws IOException
getIndexCommit in class org.apache.lucene.index.FilterIndexReaderIOExceptionpublic Object getCoreCacheKey()
getCoreCacheKey in class org.apache.lucene.index.FilterIndexReaderpublic int getTermInfosIndexDivisor()
getTermInfosIndexDivisor in class org.apache.lucene.index.FilterIndexReader