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

Direct Known Subclasses:
    GCJSegmentReader

Field Summary
 FieldInfos fieldInfos     
 TermInfosReader tis     
 TermVectorsReader termVectorsReaderOrig     
 ThreadLocal termVectorsLocal     
 BitVector deletedDocs     
 IndexInput freqStream     
 IndexInput proxStream     
 CompoundFileReader cfsReader     
 CompoundFileReader storeCFSReader     
 Map norms     
Fields inherited from org.apache.lucene.index.DirectoryIndexReader:
directory,  closeDirectory
Fields inherited from org.apache.lucene.index.IndexReader:
hasChanges
Method from org.apache.lucene.index.SegmentReader Summary:
commitChanges,   createFakeNorms,   decRef,   doClose,   doDelete,   doReopen,   doSetNorm,   doUndeleteAll,   docFreq,   document,   fieldInfos,   files,   get,   get,   get,   get,   get,   get,   get,   getFieldInfos,   getFieldNames,   getFieldsReader,   getNorms,   getSegmentInfo,   getSegmentName,   getTermFreqVector,   getTermFreqVector,   getTermFreqVector,   getTermFreqVectors,   getTermInfosIndexDivisor,   hasDeletions,   hasDeletions,   hasNorms,   hasSeparateNorms,   incRef,   isDeleted,   maxDoc,   norms,   norms,   normsClosed,   normsClosed,   numDocs,   reopenSegment,   rollbackCommit,   setSegmentInfo,   setTermInfosIndexDivisor,   startCommit,   termDocs,   termPositions,   terms,   terms,   usesCompoundFile
Methods from org.apache.lucene.index.DirectoryIndexReader:
acquireWriteLock,   commitChanges,   directory,   doClose,   doCommit,   doReopen,   finalize,   getVersion,   init,   isCurrent,   isOptimized,   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,   getRefCount,   getTermFreqVector,   getTermFreqVector,   getTermFreqVector,   getTermFreqVectors,   getTermInfosIndexDivisor,   getVersion,   hasDeletions,   hasNorms,   incRef,   indexExists,   indexExists,   indexExists,   isCurrent,   isDeleted,   isLocked,   isLocked,   isOptimized,   lastModified,   lastModified,   lastModified,   main,   maxDoc,   norms,   norms,   numDocs,   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.SegmentReader Detail:
 protected  void commitChanges() throws IOException 
 static byte[] createFakeNorms(int size) 
 protected synchronized  void decRef() throws IOException 
 protected  void doClose() throws IOException 
 protected  void doDelete(int docNum) 
 protected synchronized DirectoryIndexReader doReopen(SegmentInfos infos) throws IOException, CorruptIndexException 
 protected  void doSetNorm(int doc,
    String field,
    byte value) throws IOException 
 protected  void doUndeleteAll() 
 public int docFreq(Term t) throws IOException 
 public synchronized Document document(int n,
    FieldSelector fieldSelector) throws IOException, CorruptIndexException 
 FieldInfos fieldInfos() 
    Returns the field infos of this segment
 Vector files() throws IOException 
 public static SegmentReader get(SegmentInfo si) throws IOException, CorruptIndexException 
 static SegmentReader get(SegmentInfo si,
    boolean doOpenStores) throws IOException, CorruptIndexException 
 public static SegmentReader get(SegmentInfo si,
    int readBufferSize) throws IOException, CorruptIndexException 
 static SegmentReader get(SegmentInfo si,
    int readBufferSize,
    boolean doOpenStores) throws IOException, CorruptIndexException 
 public static SegmentReader get(SegmentInfos sis,
    SegmentInfo si,
    boolean closeDir) throws IOException, CorruptIndexException 
 public static SegmentReader get(Directory dir,
    SegmentInfo si,
    SegmentInfos sis,
    boolean closeDir,
    boolean ownDir,
    int readBufferSize) throws IOException, CorruptIndexException 
 public static SegmentReader get(Directory dir,
    SegmentInfo si,
    SegmentInfos sis,
    boolean closeDir,
    boolean ownDir,
    int readBufferSize,
    boolean doOpenStores) throws IOException, CorruptIndexException 
 FieldInfos getFieldInfos() 
 public Collection getFieldNames(IndexReader.FieldOption fieldOption) 
 FieldsReader getFieldsReader() 
 protected synchronized byte[] getNorms(String field) throws IOException 
 SegmentInfo getSegmentInfo() 
    Return the SegmentInfo of the segment this reader is reading.
 String getSegmentName() 
    Return the name of the segment this reader is reading.
 public TermFreqVector getTermFreqVector(int docNumber,
    String field) throws IOException 
    Return a term frequency vector for the specified document and field. The vector returned contains term numbers and frequencies for all terms in the specified field of this document, if the field had storeTermVector flag set. If the flag was not set, the method returns null.
 public  void getTermFreqVector(int docNumber,
    TermVectorMapper mapper) throws IOException 
 public  void getTermFreqVector(int docNumber,
    String field,
    TermVectorMapper mapper) throws IOException 
 public TermFreqVector[] getTermFreqVectors(int docNumber) throws IOException 
    Return an array of term frequency vectors for the specified document. The array contains a vector for each vectorized field in the document. Each vector vector contains term numbers and frequencies for all terms in a given vectorized field. If no such fields existed, the method returns null.
 public int getTermInfosIndexDivisor() 
 public boolean hasDeletions() 
 static boolean hasDeletions(SegmentInfo si) throws IOException 
 public synchronized boolean hasNorms(String field) 
 static boolean hasSeparateNorms(SegmentInfo si) throws IOException 
 protected synchronized  void incRef() 
    Increments the RC of this reader, as well as of all norms this reader is using
 public synchronized boolean isDeleted(int n) 
 public int maxDoc() 
 public synchronized byte[] norms(String field) throws IOException 
 public synchronized  void norms(String field,
    byte[] bytes,
    int offset) throws IOException 
    Read norms into a pre-allocated array.
 boolean normsClosed() 
 boolean normsClosed(String field) 
 public int numDocs() 
 synchronized SegmentReader reopenSegment(SegmentInfo si) throws IOException, CorruptIndexException 
  void rollbackCommit() 
  void setSegmentInfo(SegmentInfo info) 
 public  void setTermInfosIndexDivisor(int indexDivisor) throws IllegalStateException 
  void startCommit() 
 public TermDocs termDocs() throws IOException 
 public TermPositions termPositions() throws IOException 
 public TermEnum terms() 
 public TermEnum terms(Term t) throws IOException 
 static boolean usesCompoundFile(SegmentInfo si) throws IOException