Save This Page
Home » lucene-2.4.1-src » org.apache » lucene » index » [javadoc | source]
org.apache.lucene.index
class: MultiSegmentReader [javadoc | source]
java.lang.Object
   org.apache.lucene.index.IndexReader
      org.apache.lucene.index.DirectoryIndexReader
         org.apache.lucene.index.MultiSegmentReader

Direct Known Subclasses:
    ReadOnlyMultiSegmentReader

An IndexReader which reads indexes with multiple segments.
Nested Class Summary:
static class  MultiSegmentReader.MultiTermEnum   
static class  MultiSegmentReader.MultiTermDocs   
static class  MultiSegmentReader.MultiTermPositions   
Field Summary
protected  SegmentReader[] subReaders     
Fields inherited from org.apache.lucene.index.DirectoryIndexReader:
directory,  closeDirectory,  readOnly
Fields inherited from org.apache.lucene.index.IndexReader:
READ_ONLY_DEFAULT,  hasChanges
Constructor:
 MultiSegmentReader(Directory directory,
    SegmentInfos sis,
    boolean closeDirectory,
    boolean readOnly) throws IOException 
    Construct reading the named set of readers.
 MultiSegmentReader(Directory directory,
    SegmentInfos infos,
    boolean closeDirectory,
    SegmentReader[] oldReaders,
    int[] oldStarts,
    Map oldNormsCache,
    boolean readOnly) throws IOException 
Method from org.apache.lucene.index.MultiSegmentReader Summary:
commitChanges,   doClose,   doDelete,   doReopen,   doSetNorm,   doUndeleteAll,   docFreq,   document,   getFieldNames,   getFieldNames,   getSubReaders,   getTermFreqVector,   getTermFreqVector,   getTermFreqVector,   getTermFreqVectors,   getTermInfosIndexDivisor,   hasDeletions,   hasNorms,   isDeleted,   isOptimized,   maxDoc,   norms,   norms,   numDocs,   readerIndex,   rollbackCommit,   setTermInfosIndexDivisor,   startCommit,   termDocs,   termPositions,   terms,   terms
Methods from org.apache.lucene.index.DirectoryIndexReader:
acquireWriteLock,   commitChanges,   directory,   doClose,   doCommit,   doReopen,   finalize,   getIndexCommit,   getVersion,   init,   isCurrent,   isOptimized,   listCommits,   open,   open,   reopen,   rollbackCommit,   setDeletionPolicy,   startCommit
Methods from org.apache.lucene.index.IndexReader:
acquireWriteLock,   close,   commit,   decRef,   deleteDocument,   deleteDocuments,   directory,   doClose,   doCommit,   doDelete,   doSetNorm,   doUndeleteAll,   docFreq,   document,   document,   ensureOpen,   flush,   getCurrentVersion,   getCurrentVersion,   getCurrentVersion,   getFieldNames,   getIndexCommit,   getRefCount,   getTermFreqVector,   getTermFreqVector,   getTermFreqVector,   getTermFreqVectors,   getTermInfosIndexDivisor,   getVersion,   hasDeletions,   hasNorms,   incRef,   indexExists,   indexExists,   indexExists,   isCurrent,   isDeleted,   isLocked,   isLocked,   isOptimized,   lastModified,   lastModified,   lastModified,   listCommits,   main,   maxDoc,   norms,   norms,   numDeletedDocs,   numDocs,   open,   open,   open,   open,   open,   open,   open,   open,   open,   reopen,   setNorm,   setNorm,   setTermInfosIndexDivisor,   termDocs,   termDocs,   termPositions,   termPositions,   terms,   terms,   undeleteAll,   unlock
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.apache.lucene.index.MultiSegmentReader Detail:
 protected  void commitChanges() throws IOException 
 protected synchronized  void doClose() throws IOException 
 protected  void doDelete(int n) throws IOException, CorruptIndexException 
 protected synchronized DirectoryIndexReader doReopen(SegmentInfos infos) throws IOException, CorruptIndexException 
 protected  void doSetNorm(int n,
    String field,
    byte value) throws IOException, CorruptIndexException 
 protected  void doUndeleteAll() throws IOException, CorruptIndexException 
 public int docFreq(Term t) throws IOException 
 public Document document(int n,
    FieldSelector fieldSelector) throws IOException, CorruptIndexException 
 public Collection getFieldNames(IndexReader.FieldOption fieldNames) 
 static Collection getFieldNames(IndexReader.FieldOption fieldNames,
    IndexReader[] subReaders) 
 SegmentReader[] getSubReaders() 
 public TermFreqVector getTermFreqVector(int n,
    String field) throws IOException 
 public  void getTermFreqVector(int docNumber,
    TermVectorMapper mapper) throws IOException 
 public  void getTermFreqVector(int docNumber,
    String field,
    TermVectorMapper mapper) throws IOException 
 public TermFreqVector[] getTermFreqVectors(int n) throws IOException 
 public int getTermInfosIndexDivisor() throws IllegalStateException 
 public boolean hasDeletions() 
 public boolean hasNorms(String field) throws IOException 
 public boolean isDeleted(int n) 
 public boolean isOptimized() 
 public int maxDoc() 
 public synchronized byte[] norms(String field) throws IOException 
 public synchronized  void norms(String field,
    byte[] result,
    int offset) throws IOException 
 public synchronized int numDocs() 
 static final int readerIndex(int n,
    int[] starts,
    int numSubReaders) 
  void rollbackCommit() 
 public  void setTermInfosIndexDivisor(int indexDivisor) throws IllegalStateException 
  void startCommit() 
 public TermDocs termDocs() throws IOException 
 public TermPositions termPositions() throws IOException 
 public TermEnum terms() throws IOException 
 public TermEnum terms(Term term) throws IOException